note 45922 added to function.session-id

From: Date: Thu, 23 Sep 2004 16:52:43 +0000
Subject: note 45922 added to function.session-id
Groups: php.notes 
Request: Send a blank email to php-notes+get-77251@lists.php.net to get a copy of this message
The if (! session_id ) { session_start(); print "new session started"; } else { print "session exists"; } doesn't seem to be working properly. No matter how many times the code executes, I get "new session started", even though the session id returned from a subsequent cal to session_id is the exact same one from previous requests. Can someone help me? ---- Manual Page -- http://www.php.net/manual/en/function.session-id.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45922 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45922&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45922&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#77251) next »