Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > page caching and cookies

Thread Tools page caching and cookies

Zdenko Rupcic
Posts: n/a
On my pages, I use cookies to remember user login information (I use a
custom database for login and password verification), so the user
doesn't have to log in next time they visit the page. Cookie reading
procedure is stored in an web user control. However, if I quit the
browser, reload and visit the page again, I am not logged in unless I
hit browser's refresh button or navigate to another page which uses the
same user control.
I seem to have found the source of this problem - page_load event for
..aspx page is raised before user control's page_load event, so .aspx
page is loaded before information from cookie is read. I don't know how
to prevent (or change) this though.

Thanks in advance
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable page caching without disabling caching of jpegs andstylesheets etc JimLad ASP .Net 3 01-21-2010 10:13 AM
Give Request.Cookies and Response.Cookies is there any reason to use another method to use cookies? _Who ASP .Net 7 09-18-2008 07:49 PM
Persistant cookies and non-persistant cookies. archana ASP .Net 1 05-25-2007 08:43 AM
Fragment Caching inside page caching? Troy Simpson ASP .Net 0 01-19-2004 11:57 AM
trouble with caching or caching the trouble Hypo ASP .Net 6 08-01-2003 07:11 AM