note 22240 deleted from ref.session by sniper

From: Date: Tue, 21 Jan 2003 03:15:51 +0000
Subject: note 22240 deleted from ref.session by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-42478@lists.php.net to get a copy of this message
If you only want to use cookies to preserve the session and don't want to send a header(location:URL) with the sessiond id, make sure that the session_start() is called on any page before the header(location: ) is sent. That's because if the session_start() is called for the first time at the same time as the header(location: ) the cookie is not set by the browser. After the cookie is already set on a page without the redirect, you can use header(location:)'s all you want.

« previous php.notes (#42478) next »