You are here: Re: Delete of cookies and of the session-id « PHP Language « IT news, forums, messages
Re: Delete of cookies and of the session-id

Posted by Janwillem Borleffs on 06/08/05 12:30

Matthias Braun wrote:
> I try to delete at the end of the php-session either the cookies or
> the sessionid (depending on cookies are allowed or not):
>

It doesn't work that way, because a new PHPSESSID is created each time you
call session_start().

When your goal is to logout a user or something like that, you should unset
an identifier, e.g. ``loggedin'':

session_start();
if ($logout) {
unset($_SESSION['loggedin']);
}


JW

 

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

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