Jump to content

how to use session_id('my_session_id') after the first page


niranjan81

Recommended Posts

Ohh... but sorry for not putting it in the details, but I don't intent to change the session name.

 

I want to set the session_id on the second page, and not first, which means that when on the second page the session is initiated there already is a cookie set to the clients browser belonging to the first session id which will be update with the new session_id but the server side id remains unchanged to the old id, resulting in loss of data collected on the first page.

 

--OR---

 

if we do session_start("mysessionname"); what about the session data from the first page, how do we reach to it ?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.