rivkamak
asked on
classic asp cookie not deleting
I am setting a cookie in ASP like this:
response.Cookies("auctions ession") = randomSessionVar
Response.Cookies("auctions ession").E xpires = Date() + 15
Response.Cookies("auctions ession").D omain = ".oorahauction.org"
Then when they log out I try to delete the cookie this way
response.Cookies("auctions ession") = ""
Response.Cookies("auctions ession").E xpires = Date() -1
but my cookie isn't going away or clearing.
Am I missing something?
response.Cookies("auctions
Response.Cookies("auctions
Response.Cookies("auctions
Then when they log out I try to delete the cookie this way
response.Cookies("auctions
Response.Cookies("auctions
but my cookie isn't going away or clearing.
Am I missing something?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Note that 'Response.Cookies' MUST be done before any other non-ASP output. You can Not set or delete a cookie after any page content has been sent. It MUST be done before that.