It was my understanding that by setting a cookie, the returning visitor should be automatically reconnected to viable (non-expired) session information with the use of session_start(). IOW, the session_start not only starts a session, but it also reconnects to existing session info. I don't think you need to worry about saving the session ID yourself; I believe PHP handles that. As long as the cookie is not deleted and the session info has not been purged (session configuration item), the latest session info should be recognized.
Please correct me if I'm wrong on any of that. Dave -----Original Message----- From: Kieran Hall [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 25, 2002 6:58 PM To: [EMAIL PROTECTED] Subject: RE: [PHP-WIN] re-initiating a sesion I know how to start the session, that isn't the problem. I want the session to continue when the user returns. My question is really: Should I save the session Id in a cookie? And if I should, the browser seems to need refreshing (IE6). Kieran Hall -----Original Message----- From: Peter Houchin [mailto:[EMAIL PROTECTED]] Sent: 26 August 2002 00:22 To: Kieran Hall; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] re-initiating a sesion on the top of every pages that you need the sessions make sure you have session_start() put this before any html out put and you shouldn't have any problems > -----Original Message----- > From: Kieran Hall [mailto:[EMAIL PROTECTED]] > Sent: Monday, 26 August 2002 9:01 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] re-initiating a sesion > > > I have been playing with sessions on my web site and have tried to > reinitiate a session by saving the session Id in a cookie and checking > for it at the top of the page. However, this seems to fail. I > discovered also, that by refreshing the browser the sessions starts > (from the Id in the cookie). Any thoughts on the most effective way to > do this? > > Kieran Hall > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php