Reply to Re: Delete of cookies and of the session-id

Your name:

Reply:


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

[Back to original 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

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