Several pages in CS 2008 that require that the user is logged in present an Access Denied message instead of redirecting the user to the login page with a ReturnUrl. One example is to click "Message Board Subscriptions" from the forums right nav while not logged in.
How can I force a redirection to the login page rather than an Access Denied message?
Access Denied You do not have permissions to perform the requested action.
I changed this throughout my site by replacing every instance of this:
<Actions><CSControl:GoToMessageAction runat="server" MessageType="AccessDenied" /></Actions>
<Actions> <CSControl:GoToSiteUrlAction runat="server" UrlName="login"> <Parameter1Template><CSControl:ModifiedUrl runat="server" RenderRawUrl="true" Encoding="URL" /></Parameter1Template> </CSControl:GoToSiteUrlAction></Actions>
Does this seem ok? Are there any instances where I would not want my user to be redirected back to the denied resource after logging in?
Thanks,Graham
P4 Healthcare: Does this seem ok? Are there any instances where I would not want my user to be redirected back to the denied resource after logging in?
Yes,that seems okay. As long as these resources are not user-specific (have user information in the URL), this implementation should be fine.
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com