Page 1 of 1

How to acess detail page only for login user?

Posted: Tue Jan 12, 2010 7:33 pm
by danny
I want to restrict for anonymous user.

If anonymous user click the wish list or category or product detail, redirect to login page.
I'm finding source but I can't find.

How do I handle it?

Thank you.

Re: How to acess detail page only for login user?

Posted: Wed Jan 13, 2010 4:37 am
by mazhar
In your conlib folder edit user control being used on category, product details and wishlist and in their Page_Load method put following code at very start of the method for redirection.

Code: Select all

if (Token.Instance.User.IsAnonymous)
            Response.Redirect("~/Login.aspx");