Forms Authentication expiry issue

Discussion in 'ASP .Net Security' started by noemail@hotmail.com, Aug 30, 2005.

  1. Guest

    Hi,

    I'm having a problem with forms authentication on an asp.net
    application. To summarise, after logging in initially, the login never
    expires. I can come back to the application after days, and I'm still
    logged in. However, if I delete cookies from the browser I am once
    again redirected to the login page. I currently have timeout="2" in
    the athentication/forms element of the web.config.

    Anyone have any idea about what might be causing the problem?

    Thanks
    , Aug 30, 2005
    #1
    1. Advertising

  2. Hello ,

    are you using FormsAuthentication.RedirectFromLoginPage or SetAuthCookie
    - there is parameter which specifies if the login cookie should be persistent.
    I guess you are setting this to true.

    ---------------------------------------
    Dominick Baier - DevelopMentor
    http://www.leastprivilege.com

    > Hi,
    >
    > I'm having a problem with forms authentication on an asp.net
    > application. To summarise, after logging in initially, the login
    > never expires. I can come back to the application after days, and I'm
    > still logged in. However, if I delete cookies from the browser I am
    > once again redirected to the login page. I currently have timeout="2"
    > in the athentication/forms element of the web.config.
    >
    > Anyone have any idea about what might be causing the problem?
    >
    > Thanks
    >
    Dominick Baier [DevelopMentor], Aug 30, 2005
    #2
    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. Eric
    Replies:
    2
    Views:
    1,352
    Tommy
    Feb 13, 2004
  2. Andy Fish

    Catching forms authentication expiry

    Andy Fish, Jun 13, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    455
    coollzh
    Jun 13, 2004
  3. Kannan
    Replies:
    0
    Views:
    2,462
    Kannan
    May 13, 2005
  4. Replies:
    0
    Views:
    711
  5. Eric
    Replies:
    2
    Views:
    447
Loading...

Share This Page