ASPX templates
Version 5.x > ASPX templates > Change SignOutButton RedirectToURL value View modes: 
User avatar
Member
Member
Mark - 8/4/2010 3:39:39 PM
   
Change SignOutButton RedirectToURL value
I created a logon page to restrict access to the site to registered users. I am using the default Sign Out button provided and wish to change the setting/variable value/???? so that when the sign out button is clicked the user is returned to the logon page. Where specifically is this done?

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 8/6/2010 5:24:21 AM
   
RE:Change SignOutButton RedirectToURL value
Hi

1. You can add RedirectToURL attribute to

<uc1:SignOutButton runat="server" RedirectToURL="your_login_page" ID="SignOutButton" />


You can find this line in <your_project>/CMSTemplates/your_site_aspx/Root.master

2. If you prefer portal engine, open Properties of Sign Out Button web part and insert path to your login page into Redirect to URL field.

After set up this attribute, you will be redirected to Log In page, like you wanted.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
Mark - 8/13/2010 8:19:46 AM
   
RE:Change SignOutButton RedirectToURL value
Thank you. It worked fine!