Re: Header() makes session expire (fqdn?)
| From: | eric | Date: | Tue, 22 Aug 2000 02:18:35 +0000 |
| Subject: | Re: Header() makes session expire (fqdn?) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-12864@lists.php.net to get a copy of this message | ||
i don't even know what a 300 level redirect is, so i hope i'm not doing that.
thx anyway, and i see that you can use uri's within Header. why do most code
references I see use fqdns in their header functions. it seems like it would
just add extra load to some part of the system.
thx again.
jeremy brand wrote:
> It may be that you are not speaking proper HTTP. I'm guessing that
> you are trying to do some kind of 300 level redirect. You may want to
> send completely valid HTTP responses.
>
> It could be something else too, but it is good to rule out one problem
> at a time.
>
> Check out:
> http://www.faqs.org/rfcs/rfc2068.html
>
> -jeremy brand
> _______________________________________________________________________
> GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9
> _ http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for
> more __
>
> > 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