Click here to Skip to main content
15,896,259 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am using a session to hold a userid and then in a handler i want to send the value of session in database. please help how to access session value in a handler .

Please note:- use of handler is a must in my situation
Posted
Updated 10-Feb-12 5:03am
v2
Comments
Martin Arapovic 10-Feb-12 12:49pm    
Just to add something. Why hold Logged in user in seesion when you have asp.net membership classes. Example: MembershipUser membershipUser = Membership.GetUser(); That way you always can get user if you are using asp.net membership provider. Saving value into database is simple as one simple google search...

1 solution

Here it is - ASP.NET: How to access Session from handler?[^]

This was the first link on the Google search[^].
 
Share this answer
 
Comments
naren programmers 10-Feb-12 10:56am    
i seen it but this is creating a session but i want to access that session which
is created at login time.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900