Role management using cookies

Discussion in 'ASP .Net Security' started by Balagopal N. Nair, Feb 25, 2008.

  1. Implementing forms authentication in an ASP.NET is quite easy using cookies.
    A few entries in the web.config and a few lines of code and you're done.
    The problem hits you when you need to handle roles using the same mechanism.

    The SetAuthCookie and RedirectFromLoginPage methods provided by the forms
    authentication class do not provide a means to store additional user
    information in the cookie except for the username.

    The solution I have provided in the below link allows you to leverage the
    capability of cookies to store other user data where in you can store the
    roles of the user separated by coma.

    http://code.msdn.microsoft.com/nbalagopal

    Check it out.
    Balagopal N. Nair, Feb 25, 2008
    #1
    1. Advertising

  2. I have posted this in asp.net newsgroup too...!!

    "Balagopal N. Nair" wrote:

    > Implementing forms authentication in an ASP.NET is quite easy using cookies.
    > A few entries in the web.config and a few lines of code and you're done.
    > The problem hits you when you need to handle roles using the same mechanism.
    >
    > The SetAuthCookie and RedirectFromLoginPage methods provided by the forms
    > authentication class do not provide a means to store additional user
    > information in the cookie except for the username.
    >
    > The solution I have provided in the below link allows you to leverage the
    > capability of cookies to store other user data where in you can store the
    > roles of the user separated by coma.
    >
    > http://code.msdn.microsoft.com/nbalagopal
    >
    > Check it out.
    >
    Balagopal N. Nair, Feb 25, 2008
    #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. Jesper Stocholm
    Replies:
    2
    Views:
    8,050
    John Saunders
    Aug 23, 2003
  2. Liet Kynes
    Replies:
    0
    Views:
    464
    Liet Kynes
    Nov 26, 2003
  3. Balagopal N. Nair

    Role management using cookies

    Balagopal N. Nair, Feb 25, 2008, in forum: ASP .Net
    Replies:
    0
    Views:
    309
    Balagopal N. Nair
    Feb 25, 2008
  4. _Who
    Replies:
    7
    Views:
    2,614
  5. Kursat
    Replies:
    1
    Views:
    294
    Dominick Baier
    May 7, 2007
Loading...

Share This Page