You are here: Re: session id « All PHP « IT news, forums, messages
Re: session id

Posted by Paul Charlton-Thomson on 06/27/05 01:05

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@spam.com> wrote in
message news:11bsbkmj3k1kq62@corp.supernews.com...
> 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.
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация