Implementing Signout in Web Forms
Hi all,
I've been trying to implemnt the signout process in my web form. Imean whenever a user logs in he is directed to a page which has frames. This is working alright. Now I want to provide a Sign Out option for the user on this page. So I've create a link button on the banner part of the frameset page and in the link button click event is used formsauthentication.signout. Then I want the user to be redirected to the login page, where i used response.redirect to the login page. But I'm not getting the login page. I guess it might be due to the frameset I'm using, but i would like to know how do i get about this and redirect the user to the login page after he clicks the Signout button.
Re: Implementing Signout in Web Forms
I don't see what the problem is.
You can do redirect to a webpage from anywhere by specifying the entire path. If you want, use server.transfer instead.
Re: Implementing Signout in Web Forms
Quote:
Originally Posted by jpfolin
I don't see what the problem is.
You can do redirect to a webpage from anywhere by specifying the entire path. If you want, use server.transfer instead.
Well I've used the response.redirect to redirect to the login page.
But the login page displays only in the Banner part of the Frameset page where as the total URL should be changed and the login page should be displayed.
Hope u got my problem.
Its like this
I've a Signout lnkbtn on the Frameset Page. When I click on this lnkbtn the user is signed out by calling the System.Web.Security.FormsAuthentication.SignOut() . and then the next statement i used is response.redirect to redirect the page tot he login page.
The user is signed out ... This part is OK
But when redirecting to the login page... i get probs.
The login page gets displayed in the Banner part of the Frameset and the Contents frame and the main frame remain as they are.
What i want is that the login page to be displayed instead of the Frameset page.
Hope now you understood my problem.
Re: Implementing Signout in Web Forms