Hi,
In my asp page I use session to store some information,so I want to write some codes to test the client side cookie,if the client side disable the cookie,it will show message asking them to enable cookie.But while I test it, it doesn't work well,eventhough I disable the cookie ,the session still work,(i already delete all cache files).it's weird,where could be the problem?
in login.asp:
<form .......action="test.asp">
...............
<inputtype="hidden" name="firstid" value="<%=session.sessionId %>">
in test.asp:
dim firstID
firstid=request.form("firstid"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
if firstid=session.sessionId then
<lot's of code>
else
response.write"Pls enable the cookie...."
end if
Any help will be greatly appreciated.
In my asp page I use session to store some information,so I want to write some codes to test the client side cookie,if the client side disable the cookie,it will show message asking them to enable cookie.But while I test it, it doesn't work well,eventhough I disable the cookie ,the session still work,(i already delete all cache files).it's weird,where could be the problem?
in login.asp:
<form .......action="test.asp">
...............
<inputtype="hidden" name="firstid" value="<%=session.sessionId %>">
in test.asp:
dim firstID
firstid=request.form("firstid"
if firstid=session.sessionId then
<lot's of code>
else
response.write"Pls enable the cookie...."
end if
Any help will be greatly appreciated.