Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Session.Add

Status
Not open for further replies.

shaqtus

Technical User
Aug 29, 2010
8
US
I'm using the Session.Add command to track the login status of members on my website.

E.g.
Session.Add("LoginState", "true");

Is this the proper way to track login status, or will it slow down the site?

Also, where do I store the credentials of members? For example, in certain parts of the site, I need to access the first name of the user that is logged in. Do I also store this in session?
 
I wouldn't, I would use the Authentication module. You can use Forms authentication and hook in to the membership provider if necessary. I'm sure there are plenty of examples on the web of overriding forms authentication.

Jason Meckley
Programmer

faq855-7190
faq732-7259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top