note 76592 added to function.session-write-close
| From: | steve at dot-totally dot co dot uk | Date: | Sat, 21 Jul 2007 19:03:58 +0000 |
| Subject: | note 76592 added to function.session-write-close | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-128797@lists.php.net to get a copy of this message | ||
For the session problem when using header("Location:..."), I found session_write_close()
not to help me on the my IIS server using PHP in CGI mode. The problem was the PHPSESSID cookie was
never being set, so I did it the manual way:
header("Set-Cookie: PHPSESSID=" . session_id() . "; path=/");
Worked for me this way!
----
Server IP: 194.145.210.3
Probable Submitter: 212.159.119.155
----
Manual Page -- http://www.php.net/manual/en/function.session-write-close.php
Edit -- https://master.php.net/note/edit/76592
Del: integrated -- https://master.php.net/note/delete/76592/integrated
Del: useless -- https://master.php.net/note/delete/76592/useless
Del: bad code -- https://master.php.net/note/delete/76592/bad+code
Del: spam -- https://master.php.net/note/delete/76592/spam
Del: non-english -- https://master.php.net/note/delete/76592/non-english
Del: in docs -- https://master.php.net/note/delete/76592/in+docs
Del: other reasons-- https://master.php.net/note/delete/76592
Reject -- https://master.php.net/note/reject/76592
Search -- https://master.php.net/manage/user-notes.php