Date:  03/11/2002 07:11:15 AM Msg ID:  000429
From:  Gary Thread:  000428
Subject:  Re: SetCookie
Sorry about that... Correction to follow

Sent by Gary on 03/11/2002 07:05:54 AM:

I have a password form that POSTs back to itself to validate the password, then upon authentication, sets a cookie, the redirects to an ASP page.
The problem is the cookie does not get set immediately.

If PasswordCheckout
  llAuth = TRUE
  Response.SetCookie("ecXfer","Pass",,"/")
Endif

Response.Write('</BODY></HTML>')

Set Procedure To
If llAuth And !Empty(Request.GetCookie("ecXfer"))
  Response.Redirect("/ECScripts/ecUpload.asp")
Endif

The llAuth variable will be True, but the cookie will not be set.
I even tried a Response.Flush but that did not help.