RE: [PHP] RE: How do I prevent a session from rebuilding itself?
| From: | Daevid Vincent | Date: | Wed, 12 Jul 2006 20:39:04 +0000 |
| Subject: | RE: [PHP] RE: How do I prevent a session from rebuilding itself? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-239372@lists.php.net to get a copy of this message | ||
> Just to be clear, what exactly are you trying to do? Are you trying to
logout a user....
No.
We write enterprise level software probably far surpassing what PHP was ever
intended for.
However, our GUI is web based (LAMP).
We have fail over cluster nodes. If a user is logged into one via a virtual
IP, the browser sees it as transparent. When a node fails, it fails over
fine (again, the browser still sees the same VIP). But the sess_ file is not
on the new node -- by design. We purposely don't copy the /tmp/sess_ files.
What we want is, since the session is gone, that $_SESSION['login'] is (in
theory) missing/false [although it seems that PHP RAM takes precedence over
HD now and this didn't used to be the case] that the user should be
re-prompted to login.