Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Saving login info

Author  Topic 

mansoorazeem
Starting Member

4 Posts

Posted - 2007-03-08 : 09:08:30
i want to save the userid from login page to a session variable in my global.asax file how can i do it.

dfiala
Posting Yak Master

116 Posts

Posted - 2007-03-08 : 09:12:40
Session("UserID") = SomeUserID

Dean Fiala
Very Practical Software, Inc
Now with Blogging...
http://www.vpsw.com/blogbaby
Microsoft MVP
Go to Top of Page

mansoorazeem
Starting Member

4 Posts

Posted - 2007-03-09 : 05:32:43
but how this will be stored in the global.asax file so that i can use it
Go to Top of Page

dfiala
Posting Yak Master

116 Posts

Posted - 2007-03-09 : 06:36:38
it's not stored in global.asax, but once it has been set you can use it anywhere in the application

Dim UserID as String = Session("UserID")



Dean Fiala
Very Practical Software, Inc
Now with Blogging...
http://www.vpsw.com/blogbaby
Microsoft MVP
Go to Top of Page
   

- Advertisement -