Click here to Skip to main content
15,891,981 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Please can anyone say about How I will be back in Login Page after click of logout button which is in application's.Thanks in Advance
Posted

Just redirect to another page after logout, that's all.
C#
protected void LogOut()   
{       
     Session.Abandon();
     Response.Redirect("login.aspx");//Login page

}

BTW check this Tip/Trick
Browser back button issue after logout[^]
 
Share this answer
 
Comments
RaviRanjanKr 10-Dec-11 6:03am    
My 5+
Flex_Query 10-Dec-11 6:35am    
Thanks but i need the code in flex 3.0
If you've used the session mechanism, you cannot login again once you've logged out.
Your session will expire.

You can always store session information. Have a look at Implementing a Session-State Store Provider[^]. This should give you some idea.
 
Share this answer
 
Comments
Flex_Query 10-Dec-11 6:35am    
Thanks but i need the code in flex 3.0

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