Logout feature

Vote:
 

A logout possibility as a button or link to add to pages that requires authentication to read.

In CMS 5 it is only possible to logout from the edit or admin mode, this causes a problem when you have a Intranet that is accessibly over the Internet trough login (only authenticated users can read the page). Today the only way to logout if do not have access to edit mode is to close the browser. It works but is not user friendly and reduces the security of the system.

/Mats W

#34597
Nov 10, 2009 14:17
Vote:
 

If you are using Forms Authentication it should suffice to create your own button which calls FormsAuthentication.SignOut(); and then redirects the user to a new page.

You can also use the System.Web.UI.WebControls.LoginStatus control. You can see an example of this in the EPiServer public templates demo site.

#34618
Nov 10, 2009 15:42
Vote:
 

Thanks for the help! 
I found the easiest way to logout from form authentication is to just us a link that points to the logout page that resets the cookie.

#34623
Nov 10, 2009 21:09
This thread is locked and should be used for reference only.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.