Best way to keep track of user-related info? [Opinions wanted]

Discussion in 'ASP .Net Security' started by Edward J. Stembler, Nov 13, 2003.

  1. I have an ASP.Net portal application which requires a user to login.
    The user has a CompanyId associated with their profile in the
    database. Once they successfully login, I want to store the CompanyId
    for that user somewhere for later reference.

    What is the best way to do this? Should, I store the CompanyId in an
    encrypted cookie? In the Context object? Somewhere else?

    Here are some assumptions: Each user has a CompanyId assigned to their
    profile. Multiple users can log into the site. The site will need to
    know the CompanyId eventually on various pages (or usercontrols) for a
    given user. The site must keep CompanyId's seperate per user.
    Edward J. Stembler, Nov 13, 2003
    #1
    1. Advertising

  2. Nevermind. I found a good article on MSDN Magazine which helped with
    my decision:


    http://msdn.microsoft.com/msdnmag/issues/03/04/ASPNETUserState/toc.asp?frame=true&_r=1





    (Edward J. Stembler) wrote in message news:<>...
    > I have an ASP.Net portal application which requires a user to login.
    > The user has a CompanyId associated with their profile in the
    > database. Once they successfully login, I want to store the CompanyId
    > for that user somewhere for later reference.
    >
    > What is the best way to do this? Should, I store the CompanyId in an
    > encrypted cookie? In the Context object? Somewhere else?
    >
    > Here are some assumptions: Each user has a CompanyId assigned to their
    > profile. Multiple users can log into the site. The site will need to
    > know the CompanyId eventually on various pages (or usercontrols) for a
    > given user. The site must keep CompanyId's seperate per user.
    Edward J. Stembler, Nov 13, 2003
    #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. Utter Newbie
    Replies:
    0
    Views:
    467
    Utter Newbie
    Jul 28, 2003
  2. Harvey
    Replies:
    0
    Views:
    696
    Harvey
    Jul 16, 2004
  3. Harvey
    Replies:
    1
    Views:
    840
    Daniel
    Jul 16, 2004
  4. ship
    Replies:
    2
    Views:
    531
    Kristofer Gafvert
    Jul 31, 2007
  5. Shawn Minisall

    a way to keep track of # of clicks

    Shawn Minisall, Dec 9, 2007, in forum: Python
    Replies:
    0
    Views:
    320
    Shawn Minisall
    Dec 9, 2007
Loading...

Share This Page