bungpeng Posted August 23, 2005 Posted August 23, 2005 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: Quote
bungpeng Posted August 23, 2005 Author Posted August 23, 2005 This way: Dim objID As New HttpCookie(clsCookies.UserID, sID) objID.Expires = DateTime.MaxValue Response.AppendCookie(objID) Quote
mike55 Posted August 23, 2005 Posted August 23, 2005 Have a look at the Timeout limit. Mike55 Quote A Client refers to the person who incurs the development cost. A Customer refers to the person that pays to use the product. ------ My software never has bugs. It just develops random features. (Mosabama vbforums.com)
bungpeng Posted August 23, 2005 Author Posted August 23, 2005 Have a look at the Timeout limit. Mike55 Even I not set the "Expires", the same problem still occurs... So I don't think cookies disappear because of expires... Quote
bungpeng Posted August 25, 2005 Author Posted August 25, 2005 No body face the same problem as me? Quote
Administrators PlausiblyDamp Posted August 25, 2005 Administrators Posted August 25, 2005 What happens if you set the .Expires to a more reasonable value i.e. a year or two rather than .MaxValue? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
bungpeng Posted August 25, 2005 Author Posted August 25, 2005 Test already, still the same problem... Quote
Administrators PlausiblyDamp Posted August 25, 2005 Administrators Posted August 25, 2005 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? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
bungpeng Posted August 25, 2005 Author Posted August 25, 2005 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? Quote
bungpeng Posted August 26, 2005 Author Posted August 26, 2005 May I know whether server configuration or web.config file affect it? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.