Page 1 of 1

Lost theming on required login before viewing products?

Posted: Thu Jun 11, 2009 8:35 am
by xuanvu
Hello all,
I've added this line to the main folder web.config file to requires the user to login before viewing the products:

<authorization>
<deny users="?"/>
</authorization>

This 'causes the theming the be lost, and I think since the user is a guess, it can't access the styles in the App_Themes. If I take that line out, then everything appears to be working. Any idea on how to requires the user to login while maintaining the theme?

Thanks,
Kenny.

Re: Lost theming on required login before viewing products?

Posted: Thu Jun 11, 2009 5:17 pm
by ryanstowasser
Add the following line to your Product "Display Page" in the Page_Init :

if(Token.Instance.User.IsAnonymous) Response.Redirect("Login.aspx?ReturnUrl="+ _Product.NavigateUrl)