Hi Andre, hi James,

please see below

"Andre Dubuc" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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.

Then something is wrong with your server. You DO NOT need to explicitly call
session_write_close().

> 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.

James, have you tried with manually calling session_start() and setting
auto_start = 0? If not, please try this.

Haven't followed your previous thread so please forgive me if I'm asking
something you already wrote. Are you using cookies? If so, have you tried
without them by appending the session id manually to the links?

Try these settings:
session.auto_start    = 0
session.use_cookies   = 0
session.use_trans_sid = 0

Put session_start() at the top of ALL your pages and write your links this
way:
<a href="page2.php?<?php echo SID; ?>">to page 2 </a>

Hope it helps,

Regards, Torsten Roehr

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

Reply via email to