note 77103 rejected from ref.session by nlopess

From: Date: Sat, 01 Sep 2007 11:48:15 +0000
Subject: note 77103 rejected from ref.session by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-129975@lists.php.net to get a copy of this message
Note Submitter: johnpccd ---- I was having problems with sessions being changed weirdly in my site. I used to put 'id' in $_SESSION when the user logs in using : $_SESSION['id'] = value; And i used another variable called $id, i thought this never causes problems, but i did have problems(i put some id in the session, and when i refresh the page and try to grab the value back, i get another id) so i just replaced all $_SESSION['id'] by $_SESSION['sess_id'] and left the $id as is. This solved all problems. Note: While debugging this site on my local machine (i use WAMP) i never have this problem i can use $id and $_SESSION['id'] apart from each other. My php version is 5.2.3 The server's PHP version is 5.1.6 Is this a matter of versions??

« previous php.notes (#129975) next »