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

Posted by Oli Filth on 06/26/05 13:53

flintridgeparkenfarker vonkerschnauzerheiden said the following on
26/06/2005 05:32:
> 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.
>

This is one of the many problems you get when you you pass session
information in URLs rather than in a session cookie.

Simple solution: use cookies to pass session IDs. You need to disable
session.use_trans_id and/or session.use_only_cookies (see
http://www.php.net/manual/ref.session.php).


--
Oli

 

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

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