forum.venkateswarlu.net
      Register      Login
SignOut Coding

3 replies to this topic

Pasupathi G #1
Member
36 Points
Posted on 12 Dec 2011 06:05 PM IST I Want Signout Coding Clearly.........(That Means Once Click The SignOut Button Redirect The Login Page ,But Should Not Go To Back Space(Back Page)) 
Dot Net     839 views     Reply to this topic
Jahnavi N #2
Member
164 Points
Replied on 12 Dec 2011 06:21 PM IST Hi, I think the following code will give you solution to your code. private void Logout() { Session.Abandon(); FormsAuthentication.SignOut(); FormsAuthentication.RedirectToLoginPage(); } Thanks Jahnavi 
Reply to this topic
Jahnavi N #3
Member
164 Points
Replied on 12 Dec 2011 06:27 PM IST Hi,
I think the following code will give you solution to your code.

private void Logout()
{
Session.Abandon();
FormsAuthentication.SignOut();
FormsAuthentication.RedirectToLoginPage();
}

Thanks,
Jahnavi 
Reply to this topic
MalliKarjuna Cherukuri #4
Member
52 Points
Replied on 13 Dec 2011 05:56 AM IST Create a folder in the root directory and place the secured pages in that folder.
Use forms authentication to your application.
So that if any one want to access the secured pages it will redirect them to login page.
And also after SignOut button click, if you click on Back Space button it redirects to login page. 
Reply to this topic