CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 how do I save additional information into session variable after login

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message
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
View profile  Send private message
sudhakar
Posted: 10/18/2005, 5:13 AM

:-)

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.