IIRC there is a problem with v4.1.2 of PHP on IIS - is that your platform? I encountered this problem and had to implement a hack to get around it however in my case it affected all clients not just XP so it may not be the same issue... Rich -----Original Message----- From: Ellen Emerson [mailto:[EMAIL PROTECTED]] Sent: 23 January 2003 16:25 To: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php