Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
give one example on how to sign out using session in asp.net c#
Posted
Comments
Member 10918596 12-Sep-14 0:43am    
how to redirect from log out to home page
_Asif_ 12-Sep-14 0:58am    
Did you google?

Hello,

Check the link click here

Hope this will help you.
 
Share this answer
 
Create a LinkButton or a Button Control and Write this Code on that control Click Event

C#
Session.Abandon();
Session.Clear();
Response.Redirect("Default.aspx");
 
Share this answer
 
C#
Session.Clear();
Session.RemoveAll();
Session.Abandon();
Response.Redirect("redirectToLogin.aspx");
 
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