Re: session id



I use the following code ...

if ($_SESSION['name']) { }
else
{
session_cache_limiter('must-revalidate');
session_start();
session_register ("name");
$_SESSION['session'] = $PHPSESSID;
}

This stops the session_start(); from creating a new session id.

Hope this helps,

Paul.

"flintridgeparkenfarker vonkerschnauzerheiden" <no@xxxxxxxx> wrote in
message news:11bsbkmj3k1kq62@xxxxxxxxxxxxxxxxxxxxx
> When I pass the id to another page in the URL the target page uses the
> correct session id, but if I use the "Back" button then session_start()
> creates a new session and id. I don't want a new session created if the
user
> and the session is the same.
>
> I've read nothing about this in the manual. Does anyone know what I mean
and
> experienced the same obstacle?
>
> Thanks much.
>
>


.


Quantcast