Re: Cookies and redirect issues with XP
| From: | Cam Dunstan | Date: | Thu, 23 Jan 2003 23:30:09 +0000 |
| Subject: | Re: Cookies and redirect issues with XP | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18061@lists.php.net to get a copy of this message | ||
Hmmmmm - I`ve had some suspicious problems with XP myself. In my paranoia I
thought it was muckrosoft`s first awkward attempt to screw up the rapidly
expanding php community - but I think it is some kind of weird caching
issue in the OS itself. Try setting the browser to the LEAST caching
possible (diagnostic only, we don
t have the luxury of controlling clients
browser settings in real life of course).
How exactly are you redirecting? - with the header() function? - or a
snippit of javascript code sent?
CD.
----- Original Message -----
From: "Ellen Emerson" <eemerson@wcvt.com>
To: <php-windows@lists.php.net>
Sent: Friday, January 24, 2003 3:25 AM
Subject: [PHP-WIN] Cookies and redirect issues with XP
> Hello,
>
> I am new to the list so please forgive me if this issue has been covered
> recently... I spent some time browsing previous posts online but did not
see
> anything like the problem I am having.
>
> I have a system in place using sort of a fuse box methodology... An index
> page that includes modules based on an "action" variable passed in the
URL.
>
> -----------------------------
> 1) The index page first checks for the existence of "authorized" cookie
> 2) If not found show login screen
> 3) Login screen accepts username and password - submits to database lookup
> 4) If found, send the user to a page that sets a cookie and redirects back
> to the index page
> 5) Now (after setting the cookie) the index page should find the cookie
and
> show the list of actions the user can take
> -----------------------------
>
> This works great with Windows 98 SE and all browsers I can test with -
> (IE5 - IE 6, Netscape and Opera) BUT it has a problem if the operating
> system is Win XP.
>
> What happens with XP is: we accept username and password, look it up, it's
> OK - we send them to the page that sets the cookie and redirects...
>
> The index page does NOT find a cookie so shows them the login screen again
> (and again and again!)
>
> This does not seem to be a cookies problem... The person can go to another
> site (written in ColdFusion) that sets a cookie to decide whether to count
> the person... the cookie is set fine on this site and the person is only
> counted once no matter how many time they goto that page... however, no
> redirecting is done on this site.
>
> The problem seems to be a combined issue of cookies/redirecting and not
> reading the cookie.
>
> If anyone else has encountered something similar I would love to hear from
> you!
>
> Thanks very much,
> Ellen Emerson
> eemerson@wcvt.com
>
>
>
>
>