|
Posted by Rik on 08/14/07 21:46
On Tue, 14 Aug 2007 22:27:14 +0200, Toby A Inkster =
<usenet200707@tobyinkster.co.uk> wrote:
> anndr0id wrote:
>
>> <script language=3D"javascript">
>> window.location =3D "../index.php";
>> </script>
>
> I think this is the key. Check out http://www.php.net/setcookie -- in
> particular the fourth parameter "path".
Which should default to '/', i.e. every path in the domain.
> Also, why use a Javascript redirect when you can use an HTTP Location
> header?
Good point.
Either there's a domain mismatch, and the browser doesn't send this =
cookies to 'the other' domain or something else weird going on. First of=
=
all, check wether the same domain is used continuously. If that's the =
case, what does print_r(getallheaders()) (if you work with apache that i=
s) =
tell you?
-- =
Rik Wasmus
[Back to original message]
|