note 47946 added to function.session-regenerate-id

From: Date: Mon, 06 Dec 2004 18:45:10 +0000
Subject: note 47946 added to function.session-regenerate-id
Groups: php.notes 
Request: Send a blank email to php-notes+get-81453@lists.php.net to get a copy of this message
Id ran into troubles trying the proposition of timo at frenay dot net, for I use a non-standard name for the session-ID. It just took some time to find out and you might even think there's no problem at all, but there ist. Just replace the line setcookie('PHPSESSID', session_id(), NULL, '/'); with setcookie(session_name(), session_id(), NULL, '/'); and your choice of your session-name does not matter at all. :-) Jockel ---- Manual Page -- http://www.php.net/manual/en/function.session-regenerate-id.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47946 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47946&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47946&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47946&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47946&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47946&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47946&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47946&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#81453) next »