You are here: Re: Destroying the Session Object « PHP « IT news, forums, messages
Re: Destroying the Session Object

Posted by pete M on 02/19/05 13:48

here's the way I do it

logout.php
<?php
session_start();
$_SESSION = array();
session_destroy();
header('Location: login.php');
?>


Jacques wrote:
> I am developing an application. When the user signs in a Session ID is
> created (for argument sake: 123). I have a sign out page that has the script
> session_destroy() on it. This page directs me to the sign in page. When I
> sign the same or any other user in again I get the same session id (123).
>
> However, when I close the browser window and sign in again as any member,
> the session id changes.
>
> How does this work and how can I ensure that a unique session id is
> allocated to every new user that signs in?
>
> Jacques

 

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

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