On Friday 13 August 2004 11:19 am, you wrote:
> On Friday 13 August 2004 11:14 am, Andre Dubuc wrote:
> > Hi James,
 [snip]

 .for thatt matter, have you 'saved' it using session_write_close();
>
> From the Manual:
> Session data is usually stored after your script terminated without the
> need to call session_write_close(),
>
[snip]


Well, for my money James, that's where your problem lies. Notice the "usually" 
in the Manual quote. In my experience, it never saves unless I write to it. 
But, with your config, with session.auto_start=1, if I read that correctly, 
it will do nothing other than start the session automatically, but not save a 
change to a session variable. Hence, it reloads with a 'not-set' condition in 
that code. And by the way, it is hitting that if condition - hence your reset 
session.

Just my $2 worth (inflation, you know :>)
Andre

> Time is set.
>
> > Test1 and hits the above condition, it will write a new time, and hence a
> > new session.
>
> It should never hit the if condition after the first load of the page.
>
> > I presume two things; 1. that you have <?php session_start(); ?> as
> > opener lines on each page  and 2. that register_globals=off.
>
> In my php.ini I have session.auto_start = 1, so that I do not need
> session_start(). And register_globals is set to off.
>
> > The last thing caused
> > all sorts of grief for me last week - messes up sessions if 'on'
>
> Been there done that! Thanks for trying to help!
>
> James

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

Reply via email to