jofil
Posts: 5
|
Posted: 09/01/2005, 8:16 AM |
|
I would like to save into session variables (say first name, last name, etc.) when the user logs in. Also how do I clear these fields when the user logs out.
Your help is much appreciated.
Joe
_________________
Best Regards,
Joe Filipe
-----------------------------
Jofil Consulting Inc.
www.jofil.com |
|
|
E43509
Posts: 283
|
Posted: 09/01/2005, 10:36 AM |
|
To clear all session variables
System.Web.HttpContext.Current.Session.Abandon
To get rid of one you created
System.Web.HttpContext.Current.Session.Remove("mySessionVariable")
To set a session variable
HttpContext.Current.Session("myLastName") = "Smith"
You can probably add on button click for the login
|
|
|
jofil
Posts: 5
|
Posted: 10/05/2005, 8:55 AM |
|
Thanks for your suggestion.
I was able to overcome this scenario by modifying the common code (ASP) where the login / out takes place; in other words, when the user logs in CCS validates the user info against the security tables. Once retrieved, I would then set the appropriate session variables with the corresponding values.
Is there an equivalent area that I can do the same using .NET?
Where can I see the code that CCS uses to perform the validation of the user ID?
Thanks for your help
_________________
Best Regards,
Joe Filipe
-----------------------------
Jofil Consulting Inc.
www.jofil.com |
|
|
sudhakar
|
Posted: 10/18/2005, 5:13 AM |
|
|
|
|
|