Cookies will disappear?

bungpeng

Senior Contributor
Joined
Sep 10, 2002
Messages
906
Location
Malaysia
My application use cookies when user login.
All my page load will check if cookies not exist then redirect back to login page.

The problem is, even user not logoff, the cookies will suddenly disappear and redirect user to login page. is it possible? :confused: :confused:
 
This way:

Dim objID As New HttpCookie(clsCookies.UserID, sID)
objID.Expires = DateTime.MaxValue
Response.AppendCookie(objID)
 
What browser(s) are you using? Is the browser configured to block cookies?
What is the URL of the page that iniitially generates the cookie compared to the ones that attempt to read it?
 
IE, did not block cookies, because in other page is ok.
In the same domain... the main point is, sometimes can, sometimes cannot, even I use F5 key to confirm it is not cache by browser...

Will server setting affect cookies?
 
Back
Top