Tag Archives: session

SVN sessions issue

Questions: I’m new to setting up and using svn server, and I met with a weird problem during using the server. I used this guide to set up: http://noobcode.blogspot.com/2010/03/what-is-subversion-as-quoted-by.html The problem is: I created a user like in the guide, and also a second one. I trying to access the repo with the later created… Read More »

php sessions saved in ramdisk

Questions: I’m trying to save my php session on ramdisk. I have a permission problem but i can’t see what where it’s the problem. I have the ramdisk: /dev/ram0 407M 2.4M 404M 1% /var/lib/php/session/ramd I have the permissions: drwxrwx—. 3 root apache 1024 Mar 24 01:53 ramd My error: Warning: session_start(): open(/var/lib/php/session/ramd/sess_b0ko6hl3p6ojj2ot3qfqvm9km1, O_RDWR) failed: Permission… Read More »

getting session variable even after session destroy

Questions: I am newbie in php. I can not under stand a thing that session variable is outputting even after session_destroy() and session_unset().Here is my simple code for test `session_start(); SESSION[‘name’]=’sovon’; session_destroy(); session_unset($_SESSION[‘name’]); echo $_SESSION[‘name’]; ` The output is ‘sovon’. My question what is session_destroy() and session_unset() doing here and whats the difference between them?… Read More »

Apache/PHP mod_security: session hijacking false positive with session_start()

Questions: I’m using the core rules of OWASP for mod_security. There seems to be a false positive… index.php if( session_id() == ” ) session_start(); Head Request Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Connection keep-alive Cookie PHPSESSID=o2aaf0uti8pmah63t92ssvkqv0 Host www.test.com User-Agent Mozilla/5.0 (Windows NT 6.0; rv:28.0) Gecko/20100101 Firefox/28.0 error.log [Mon Apr 28 20:11:37.346379 2014] [:error] [pid 5312:tid 1700] [client 127.0.0.1] ModSecurity:… Read More »

Sessions storage php/nginx

Questions: I’m having trouble with session variable in my setup. I’m storing some data in SESSION variables, but it seems like they’re not stored properly, or at least I can’t access them. On my local computr running MAMP it works ifne but in prod with php5/nginx, my session variables aren’t stored. (I get an undefined… Read More »

PHP sessions not being set

Questions: I have a code which logs in via AJAX and then passes the data to a .php file to check it against the SQL. for a test, the username and password is me – me however even tho this comes back from the check it doesn’t log me in, it seems like the session… Read More »

How do I prevent Ajax calls from keeping a session alive?

Questions: I’m using cookie authentication in MVC5. My web pages rely heavily on authenticated as well as unauthenticated Ajax calls every 1-5 seconds to keep data updated. Consequently, my users never log out of the site. My ideal scenario: If a user is actively browsing or conducting actions on my site, keep the session alive.… Read More »