How to acess detail page only for login user?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
danny
Ensign (ENS)
Ensign (ENS)
Posts: 8
Joined: Tue Jan 12, 2010 6:58 pm

How to acess detail page only for login user?

Post by danny » Tue Jan 12, 2010 7:33 pm

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.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

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

Post by mazhar » Wed Jan 13, 2010 4:37 am

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");

Post Reply