You are here: Re: Strange Issues with $_Cookie « PHP Programming Language « IT news, forums, messages
Re: Strange Issues with $_Cookie

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация