I'm setting a cookie to store a username for an extended period of time.
Due to the problem, I test it like this...
Which gives me the output
cookie -> jimjazz
test.asp
Next, I click on the "test.asp" link. On the test.asp page, I run the same test code..
And it gives the output:
cookie ->
What gives?
(these are results for IE8, everything seems to work fine in FF3.5, but 98% of all my users are IE)
Code:
'If the user requested to be remembered...
If memory = 1 Then
Response.Cookies("Username") = rsLogin.Fields.Item("Username").Value
Response.Cookies("Username").Expires= Date() + 7
Session.Contents.Remove("Username")
Else
'If the user did not request to be remembered...
Session("Username") = rsLogin.Fields.Item("Username").Value
Response.Cookies("Username") = ""
End If
Code:
Response.Write("cookie -> " & Request.Cookies("Username") & "<br><br>")
Response.Write("<a href=""test.asp"">test.asp</a>")
cookie -> jimjazz
test.asp
Next, I click on the "test.asp" link. On the test.asp page, I run the same test code..
Code:
Response.Write("cookie -> " & Request.Cookies("Username") & "<br><br>")
cookie ->
What gives?
(these are results for IE8, everything seems to work fine in FF3.5, but 98% of all my users are IE)
Comment