Re: Quick Sessions ?
| From: | Anthony | Date: | Fri, 04 Apr 2003 20:38:20 +0000 |
| Subject: | Re: Quick Sessions ? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142430@lists.php.net to get a copy of this message | ||
nope, same host I actually call the file by sending this :
header("Location: ../index.htm");
and I loose the session.
- Anthony
"Ernest E Vogelsinger" <ernest@vogelsinger.at> wrote in message
news:5.1.1.6.2.20030404222027.032ace30@mail.vogelsinger.at...
> At 22:18 04.04.2003, Anthony said:
> --------------------[snip]--------------------
> >yes, it parses PHP in html files. The php code works. I just loose the
> >session data when going from files in different folders.
> --------------------[snip]--------------------
>
> Different folders, or different hostnames?
>
> PHP's ability to automatically add the SID to href's, as well as cookies,
> are limited to the same hostname.
>
> Example:
>
> www.myhost.com => /html/myhost/www/
> www.myotherhost.com => /html/myhost/www/
>
> These two couldn't share the same session, even if they reference the same
> physical directory.
>
>
> --
> >O Ernest E. Vogelsinger
> (\) ICQ #13394035
> ^ http://www.vogelsinger.at/
>
>