note 33369 added to function.session-start
| From: | m dot kuiphuis at hccnet dot nl | Date: | Tue, 24 Jun 2003 08:37:30 +0000 |
| Subject: | note 33369 added to function.session-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-50916@lists.php.net to get a copy of this message | ||
I use name-based virtual hosting on Linux with Apache and PHP 4.3.2.
Every time when I refreshed (by pressing F5 in Internet Explorer) I noticed that I got a new
session_id. Simultaneously browsing the same site with Netscape didn't give me that problem.
First I thought this was some PHP issue (before I tested it with Netscape), but after searching a
lot on the internet I found the problem.
Since I was using name based virtual hosting for my testserver and we have different webshops for
different customers I used the syntax webshop_customername.servername.nl as the domain-name.
The _ in the domain name seemed to be the problem. Internet Explorer just denies setting the cookie
on the client when there is a special character (like an _ ) in the domain name. For more
information regarding this issue: http://support.microsoft.com/default.aspx?scid=kb;EN-US;316112
Stupidly enough, this information was related to asp (yuk :o)
----
Manual Page -- http://www.php.net/manual/en/function.session-start.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33369
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33369&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33369&report=yes