faqts : Computers : Programming : Languages : PHP : Common Problems : Cookies

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

52 of 60 people (87%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

Why do scripts that work fine with Apache not set the cookie with IIS/PWS?

May 29th, 2001 10:45
Susan Ottwell, http://support.microsoft.com/support/kb/articles/Q176/1/13.ASP?LN=EN-US&SD=gn&FR=0&qry=redirect%20cookie&rnk=1&src=DHCS_MSPSS_gn_SRCH&SPR=IIS


There is a bug in IIS/PWS that causes the server to ignore a SetCookie 
header directive if there is also a redirection directive.  The 
workarounds are to re-code the script to set the redirection as a META 
tag, code the redirection in JavaScript, or switch from IIS/PWS to 
Apache.