asp.net page caching and cookies

Z

Zdenko Rupcic

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top