note 95372 added to function.session-start
| From: | jamestrowbridge at gmail dot com | Date: | Tue, 29 Dec 2009 17:57:23 +0000 |
| Subject: | note 95372 added to function.session-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-164445@lists.php.net to get a copy of this message | ||
Unfortunately, after pulling my hair out trying to figure out why my application was working fine in
every browser other than IE ( Internet Explorer) (Opera, Chrome, Firefox, Safari are what I've
tested this in) - when using a DNS CNAME record (like a vanity name that is different from the DNS A
record, which is the hostname of the server) sessions do not work correctly.
If you store a session var while on the CNAME:
vanity.domain.com and the hostname of the server is hosname.domain.com
Then try to call the variable from a different page, it will not find it because of the CNAME (I
guess it store the variable under the hostname, then when trying to read it it's still looking
under the CNAME) the same application works fine when accessing it under the hostname directly.
Keep in mind that I was testing this on an internal network.
----
Server IP: 208.69.120.55
Probable Submitter: 63.241.252.2
----
Manual Page -- http://www.php.net/manual/en/function.session-start.php
Edit -- https://master.php.net/note/edit/95372
Del: integrated -- https://master.php.net/note/delete/95372/integrated
Del: useless -- https://master.php.net/note/delete/95372/useless
Del: bad code -- https://master.php.net/note/delete/95372/bad+code
Del: spam -- https://master.php.net/note/delete/95372/spam
Del: non-english -- https://master.php.net/note/delete/95372/non-english
Del: in docs -- https://master.php.net/note/delete/95372/in+docs
Del: other reasons-- https://master.php.net/note/delete/95372
Reject -- https://master.php.net/note/reject/95372
Search -- https://master.php.net/manage/user-notes.php