asp.net page caching and cookies

Discussion in 'ASP .Net' started by Zdenko Rupcic, Sep 18, 2006.

  1. 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
    Zdenko Rupcic, Sep 18, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Troy Simpson

    Fragment Caching inside page caching?

    Troy Simpson, Jan 19, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    768
    Troy Simpson
    Jan 19, 2004
  2. Eric Lawrence [MSFT]

    Re: read cookies come from asp page in asp.net page

    Eric Lawrence [MSFT], Feb 26, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    365
    Eric Lawrence [MSFT]
    Feb 26, 2004
  3. =?Utf-8?B?QXRpbGEgQmFybGFz?=

    RE: read cookies come from asp page in asp.net page

    =?Utf-8?B?QXRpbGEgQmFybGFz?=, Feb 27, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    390
    =?Utf-8?B?QXRpbGEgQmFybGFz?=
    Feb 27, 2004
  4. _Who
    Replies:
    7
    Views:
    2,630
  5. JimLad
    Replies:
    3
    Views:
    901
    JimLad
    Jan 21, 2010
Loading...

Share This Page