Hi all:

I am using session_regenerate_id(true). My understanding of this is that this will change your session_id number.

Page1.php would have:

session_start();
session_unset();
session_regenerate_id(true)

Page2.php would have:

session_start();
echo session_id;

Let's say the original session id is "123454321". I now go to Page1.php and the new session id is "098767890". But when I go to Page2.php, echo session_id still reads "123454321".

I am using PHP 5.3.8.

Any insight appreciated!

Thanks

    Write a Reply...