How long is the formsauthentication ticket valid

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default How long is the formsauthentication ticket valid

    Hello

    These questions may seem stupid but I am confused about the
    formsauthentication ticket stuff. From what I know till now it is a
    cookie/session variable ( I am still not sure which of the two).
    1. When I use a FormsAuthentication.SetAuthCookie method I do not
    specify a timeout. So how long is this valid.
    2. Is this the same thing that I later access using
    Contect.User.Identity?

    Any help appreciated.

    thnx,
    Swati
    Swati Guest

  2. Similar Questions and Discussions

    1. Question about a long session timeout (somewhat long)
      I've been told by my developers to increase the asp.net session timeout to 72 hours. Being a server guy, it concerns me because of the obvious...
    2. kdc ticket auditing
      Hi, I would like to audit the kdc ticket activity: I mean: I access IIS via kerberos, so I find in event viewer the 672 entry, then I have a 673...
    3. FormsAuthentication.SignOut() does not appear to remove authentication ticket
      My applicaiton is using forms authentication. I want to have a logout button. Users initially go to page main.aspx. If it is the first time the...
    4. HOW TO: make a session valid only as long as user on site?
      I trying to use sessions to save a user name/id after login. If the user leaves the site and comes back, how do I force a new session and login?
    5. Golden Ticket
      How do I set a golden background which will have a real shine?
  3. #2

    Default Re: How long is the formsauthentication ticket valid

    the timeout you specify in the web.config will be considered.

    <authentication mode="Forms">
    <forms name=".ASPXFORMSDEMO" loginUrl="logon.aspx"
    protection="All" path="/" timeout="30" />
    </authentication>

    the AuthCookie is stored as cookie (not a session variable) on the client.
    each time you get a request to the server, you need to read this cookie and
    populate your Context.User with a GenericPrinciple object created using this
    cookie. This generally is done in Application_Authenticate method in
    global.asax file.

    more info :
    [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;301240&Product=aspnet[/url]

    hth,
    Av.

    "Swati" <swatisahasrabudhe@yahoo.com> wrote in message
    news:abadda58.0404290359.399d040e@posting.google.c om...
    > Hello
    >
    > These questions may seem stupid but I am confused about the
    > formsauthentication ticket stuff. From what I know till now it is a
    > cookie/session variable ( I am still not sure which of the two).
    > 1. When I use a FormsAuthentication.SetAuthCookie method I do not
    > specify a timeout. So how long is this valid.
    > 2. Is this the same thing that I later access using
    > Contect.User.Identity?
    >
    > Any help appreciated.
    >
    > thnx,
    > Swati

    avnrao Guest

  4. #3

    Default Re: How long is the formsauthentication ticket valid

    Thanks for the help
    Swati Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139