Hi,
Happy New Year to one and all!
I've come across an odd behaviour in Global.asa when trying to set a cookie. I've tried researching how global.asa stores some its info on the client but have only come up with....
"Session cookies are stored in the visitor's computers memory."
Which i gather means session variables which is interesting. I didn't know that.
When I have something like this in global.asa
Sub Session_OnStart
Response.Cookies("Cook1") = "Hello World"
End Sub
If I have a page somewhere that has this ..
Response.Write Request.Cookies("Cook1")
I get > Hello World
which is great!! But when I have browser that has Cookies DISABLED I still get "Hello World" ??? This is with all browsers. I tried closing the browser, deleting all cookies, played around with expiry dates but still > Hello World
I get the impression that all client orientated info between Start and End tags is stored in client memory and bypasses browser settings.
Does anyone have some thoughts about this?
The reason I'm doing this is that I am trying to establish a way of determing whether a client has cookies enabled without having to use javascript, that MTW browser thing and self-redirecting cookie evaluation.
Regards
abraxas
Happy New Year to one and all!
I've come across an odd behaviour in Global.asa when trying to set a cookie. I've tried researching how global.asa stores some its info on the client but have only come up with....
"Session cookies are stored in the visitor's computers memory."
Which i gather means session variables which is interesting. I didn't know that.
When I have something like this in global.asa
Sub Session_OnStart
Response.Cookies("Cook1") = "Hello World"
End Sub
If I have a page somewhere that has this ..
Response.Write Request.Cookies("Cook1")
I get > Hello World
which is great!! But when I have browser that has Cookies DISABLED I still get "Hello World" ??? This is with all browsers. I tried closing the browser, deleting all cookies, played around with expiry dates but still > Hello World
I get the impression that all client orientated info between Start and End tags is stored in client memory and bypasses browser settings.
Does anyone have some thoughts about this?
The reason I'm doing this is that I am trying to establish a way of determing whether a client has cookies enabled without having to use javascript, that MTW browser thing and self-redirecting cookie evaluation.
Regards
abraxas