Security levels in an app is a common one. If your user sees or has access to different things based on some security model in your application, and this user's security level is stored in a database, it's nice to just pull the value from a session variable instead of hitting the database on every page load to check security. (The downside to this is that if the person's security level is changed during an active session, this will not be reflected immediately.)
On the app I'm currently working on, I have some session variables that store the employee's employee ID from our HR database, as well as the person's first and last name for displaying at various places. Ray at home > -----Original Message----- > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of Pam > Sent: Wednesday, September 28, 2005 6:12 PM > To: [email protected] > Subject: RE: [ASP] Little Question > > Can I inquire just a little further and ask for a couple of > simple examples where a session variable would be needed or useful? > > Thanks, > Pam ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/17folB/TM --------------------------------------------------------------------~-> --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
