A
AAaron123
I have the following:
Sub Session_Start...
Dim gotCookie As Integer
Try
gotCookie = CInt(Request.Cookies("styleSheet").Value)
Session("CookiesEnabled") = True
Catch ex As Exception
gotCookie = 3
Session("CookiesEnabled") = False
End Try
....
without the statements that set the Session variable to indicate if cookies
are supported and enabled. I just added those.
This code is not run each time a page is requested if cookies are supported,
so if the user enables cookies after they've been disabled (and the variable
got set to false) it appears, to me, that the variable will not get set to
true (because this does not run again if cookies are supported).
But I check in page_load and it appears to get set to true even though a
breakpoint shows that the above code is not entered.
Magic?
Can you explain what is going on??
Thanks
Sub Session_Start...
Dim gotCookie As Integer
Try
gotCookie = CInt(Request.Cookies("styleSheet").Value)
Session("CookiesEnabled") = True
Catch ex As Exception
gotCookie = 3
Session("CookiesEnabled") = False
End Try
....
without the statements that set the Session variable to indicate if cookies
are supported and enabled. I just added those.
This code is not run each time a page is requested if cookies are supported,
so if the user enables cookies after they've been disabled (and the variable
got set to false) it appears, to me, that the variable will not get set to
true (because this does not run again if cookies are supported).
But I check in page_load and it appears to get set to true even though a
breakpoint shows that the above code is not entered.
Magic?
Can you explain what is going on??
Thanks