UserData size limit in a FormsAuthenticationTicket

Discussion in 'ASP .Net Security' started by Simon Laroche, Feb 3, 2004.

  1. Is there a size limit to the userData in a FormsAuthenticationTicket ?

    I'm asking this because when I try to encrypt the FormsAuthenticationTicket
    it returns a null but only when the userData is pretty large (about 3000 characters)


    thanks,


    Simon
    Simon Laroche, Feb 3, 2004
    #1
    1. Advertising

  2. Actually, there is a limit of 4KB that is dictated by the max. cookie size.
    However, your userdata should be smaller than this limit because of the
    additional info that adds the forms auth. ticket and specially if it's
    encrypted.

    --
    Hernan de Lahitte
    Lagash Systems S.A.
    http://www.lagash.com



    "Simon Laroche" <> wrote in message
    news:...
    > Is there a size limit to the userData in a FormsAuthenticationTicket ?
    >
    > I'm asking this because when I try to encrypt the

    FormsAuthenticationTicket
    > it returns a null but only when the userData is pretty large (about 3000

    characters)
    >
    >
    > thanks,
    >
    >
    > Simon
    Hernan de Lahitte, Feb 3, 2004
    #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. Morgan

    FormsAuthenticationTicket

    Morgan, Dec 8, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    621
    Morgan
    Dec 8, 2003
  2. Fresh Air Rider
    Replies:
    2
    Views:
    692
    Fresh Air Rider
    Feb 29, 2004
  3. dev648237923

    FormsAuthenticationTicket looses UserData

    dev648237923, Dec 1, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    2,359
    Dan Ignatov
    Jan 15, 2007
  4. Replies:
    1
    Views:
    1,069
    Victor Bazarov
    Jun 28, 2005
  5. Nicolas LeBlanc
    Replies:
    0
    Views:
    177
    Nicolas LeBlanc
    Feb 13, 2004
Loading...

Share This Page