Re: Losing Sessions
| From: | Curt Zirzow | Date: | Wed, 16 Jun 2004 05:40:16 +0000 |
| Subject: | Re: Losing Sessions | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188371@lists.php.net to get a copy of this message | ||
* Thus wrote Paul Liebrand (pliebrand@imaxa.com):
> Curt,
>
> Thanks for the reply.
>
> I am going to go ahead and change all my session variables to use the
> methods you described. Because I am using the session_register method, could
> this be the cause of my problem? That it works 90% of the time, but a couple
> times throughout the day the sessions just get lost?
hmm.. i I guess I didn't really cover why the session's would get
lost. From my experience they really dont get lost, they just don't
get set properly. And using a session_register() with $_SESSION or
$HTTP_SESION_VARS along withh register_globals being on usually
complicates the whole process.
Assuming you're using cookies, the only way they usually get lost
is when the user rejects a cookie after accepting cookies for a
couple pages, which is usually a rare case unless your me :)
As I noted in my previous message i would also add, after
re-evalulating the session docs, is to also pay attention to the
'cautions' as well. They usually clearify why session's aren't
working they way they should.
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!