note 110043 modified in function.session-destroy by googleguy

From: Date: Fri, 14 Sep 2012 04:54:20 +0000
Subject: note 110043 modified in function.session-destroy by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-190741@lists.php.net to get a copy of this message
If you want to change the session id on each log in, make sure to use session_regenerate_id(true) during the log in process.

<?php
session_start();
session_regenerate_id(true);
?>

[Edited by moderator (googleguy at php dot net)] --was-- If you want to change the session id on each log in, Please put these lines in the log out page. session_start(); session_regenerate_id(TRUE); session_destroy(); It worked for me! http://php.net/manual/en/function.session-destroy.php

« previous php.notes (#190741) next »