Click here to Skip to main content
15,916,030 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I want to display user's information after login...page must show its own information rather all..have to session or any other way..plz help
Posted

No difference there.Please try is as below.

Set Session

Session["UserName"] = UserName;//store it on session



Get Session

var userName = Session["UserName"].ToString();


Clear Session

C#
Session["UserName"] = null;
 
Share this answer
 
Comments
Member 9579525 6-Feb-14 8:21am    
y have done that but what to do when user have to shown their own information on next page
Sampath Lokuge 6-Feb-14 8:43am    
Just retrieve the session data by using the way above under 'Get Session'.
 
Share this answer
 

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