Re: session id
- From: "Paul Charlton-Thomson" <paul@xxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 26 Jun 2005 22:05:29 +0000 (UTC)
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.
>
>
.
- References:
- session id
- From: flintridgeparkenfarker vonkerschnauzerheiden
- session id
- Prev by Date: CMS (php,mambo)
- Next by Date: Thank you so much!
- Previous by thread: Re: session id
- Next by thread: Re: session id
- Index(es):