note 78458 added to function.session-id
| From: | PhotoProgrammer at osu1 dot php dot net | Date: | Fri, 12 Oct 2007 17:44:25 +0000 |
| Subject: | note 78458 added to function.session-id | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-131349@lists.php.net to get a copy of this message | ||
HI
I have a similar problem as "eduardo dot sandino at google dot com" indicates I'm
having an script where I post from and to the same script - developed on PHP 4.x - it goes like:
if(!session_id()){
session_start();
}
$SessionId=session_id();
..
But it does not work on 5.2.4 - I get a new Cookie-file created each time I re-load the page and
hence a new session_id - it's like the session_id is either not passed to the script or the
check for the session_id() is not the right way to do it even if it works with php 4.x..
Any idears??
----
Server IP: 86.58.145.50
Probable Submitter: 87.48.115.119
----
Manual Page -- http://www.php.net/manual/en/function.session-id.php
Edit -- https://master.php.net/note/edit/78458
Del: integrated -- https://master.php.net/note/delete/78458/integrated
Del: useless -- https://master.php.net/note/delete/78458/useless
Del: bad code -- https://master.php.net/note/delete/78458/bad+code
Del: spam -- https://master.php.net/note/delete/78458/spam
Del: non-english -- https://master.php.net/note/delete/78458/non-english
Del: in docs -- https://master.php.net/note/delete/78458/in+docs
Del: other reasons-- https://master.php.net/note/delete/78458
Reject -- https://master.php.net/note/reject/78458
Search -- https://master.php.net/manage/user-notes.php