Re: Header() makes session expire (fqdn?)

From: Date: Tue, 22 Aug 2000 02:16:24 +0000
Subject: Re: Header() makes session expire (fqdn?)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12863@lists.php.net to get a copy of this message
Possibly due to the nature of cookies, and the fact that they're only available to the domain in which they're set. I can't really be bothered going and looking up the cookie spec right now, but you'll possibly find that you can't set a cookie for a domain name, then use that same cookie by using the IP address of that domain name instead of the domain name itself, and vice versa. jason > Hello List, > > I was wondering if someone could tell me why this line > > > Header("Location:http://www.somedomain.com/somepage.phtml"); > > expires the users session, but > > Header("Location: >http://192.168.1.199/somepage.phtml"); > > keeps the session and page flow intact? (www.somedomain.com is not a > fqdn but it is mapped to 192.168.1.199 in my etc/hosts file) Ping and > telnet work. > > > > Also, can I use URI's within Header like this? > Header("Location:/somepage.phtml"); > > > Many Thx - Eric

« previous php.general (#12863) next »