note 51570 added to function.session-start
| From: | christian dot froemmel at charite dot de | Date: | Mon, 04 Apr 2005 15:15:14 +0000 |
| Subject: | note 51570 added to function.session-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-87434@lists.php.net to get a copy of this message | ||
If you're developing websites using the (OS-feature) of search-domains [1] it is likely, that
the browser silently discards the php-cookie-request when doing session_start() and creates a new
session everytime you reload.
[1] Ie. you have the search-domain "senpftopf.de" and you're pointing with your
browser to "http://www/session.php" (where the
OS does the completion on its own) instead of the full name "http://www.senpftopf.de/session.php".
I assume because the browser cannot determine for which domain the cookie is for and ignores the
request. So you should use the full qualified hostname + domain.
----
Manual Page -- http://www.php.net/manual/en/function.session-start.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51570
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51570&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51570&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51570&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51570&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51570&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51570&report=yes
Search -- http://master.php.net/manage/user-notes.php