note 58403 deleted from function.session-start by nlopess
| From: | nlopess@php.net | Date: | Thu, 03 Nov 2005 09:48:38 +0000 |
| Subject: | note 58403 deleted from function.session-start by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-98018@lists.php.net to get a copy of this message | ||
Note Submitter: Tom
----
I ran into a problem with user authentication and sessions today- I was using PW hash values as user
authentication and storing them as $_SESSION['pwhash'] for retrieval. But every time I
tried to access the value from a different page the $_SESSION['pwhash'] would shift the
H.L. bit by a small increment. say from 554b75a2848b39a9ae16abc24eaa1d73 to
514b75a2848b39a9ae16abc24eaa1d73
It seems like the problem was that I called the variable the same thing as I did in my SQL queries.
(the column name was also 'pwhash')
when I changed the session variable name to 'passcheck' it worked fine.
Apologies if this is standard behavior and i'm not helping anyone, but it drove me nuts for a
while.
cheers.