Re: Are sessions unreliable?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi! Warren

Thanks for such a detailed reply... I am already looking into the code...

Just wanted to ask... I recently updated Red Hat's kernel.. and this problem seems to started appearing after that... is there a possibility of any connection between these two?


Warren Vail wrote:

I have had similar things happen but in every case it turned out to be a
program bug in my code.  It was usually something I looked at over and
over and I saw the way it was supposed to work, but because I missed a
detail it was not working that way.  I would suggest you find someone to
look over your code and help you with the debug process.  I found many
bugs just trying to explain to someone clearly how it worked.

I suppose it could be a browser problem, but you need to solve those as
well, or at least handle them gracefully.  Do you make it a practice of
having multiple browser instances open at the same time.  I believe they
will each normally get their own session key, and if you get your hands
crossed, you will be looking at the symptoms in the wrong browser,
bottom line, test, test, and test, then get a second set of eyes to look
at your code, show them how it works, they don't need to really know a
lot about PHP, or even programming for that matter, they will ask
questions that as you try to answer them, you will find your problems.

I have never found a legitimate bug in PHP Sessions, I have on the other
hand found I was inconsistently using session handler routines, and
before register globals was turned off, I was finding form variables
that clobbered my session variables (or maybe it was the other way).

Good Luck,

Warren Vail
warren@xxxxxxxxxxxx


-----Original Message-----
From: Dasmeet Singh [mailto:singhdasmeet@xxxxxxxxx] Sent: Friday, April 15, 2005 11:04 PM
To: php-general@xxxxxxxxxxxxx
Subject: Are sessions unreliable?



Hi!

I store some user info in sessions.. it works fine but sometimes what happens is that the user id stored in session get changed.. and it happens only sometimes..

Can it be browser problem? or this is common?

Thanks



-
Free cPanel Web Hosting http://hostwindow.info/web-hosting/2/free-> cpanel-web-hosting/



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






-

Free cPanel Web Hosting
http://hostwindow.info/web-hosting/2/free-cpanel-web-hosting/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux