Hello,
Is it possible to require a user to login (or register) before they see any products? In other words, a user may visit the site but they first thing they have to do is login or register.
Thanks,
Jay
Require login prior to viewing products?
-
- Ensign (ENS)
- Posts: 3
- Joined: Wed May 21, 2008 6:20 pm
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
Re: Require login prior to viewing products?
You can probably do this with some changes to the web.config file and the authorization element.
Open the /web.config file and look for this line:
Try adding some stuff around it:
Basically it says no anonymous users can access anything (except the captcha script).
Open the /web.config file and look for this line:
Code: Select all
<system.web>
Code: Select all
<location path="Captcha.ashx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<system.web>
<authorization>
<deny users="?"/>
</authorization>
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
-
- Ensign (ENS)
- Posts: 3
- Joined: Wed May 21, 2008 6:20 pm
Re: Require login prior to viewing products?
Logan,
I'll give that a shot this week and post the results.
Thanks,
Jay
I'll give that a shot this week and post the results.
Thanks,
Jay
-
- Ensign (ENS)
- Posts: 3
- Joined: Wed May 21, 2008 6:20 pm
Re: Require login prior to viewing products?
Logan,
That appears to work perfectly - thank you very much.
Jay
That appears to work perfectly - thank you very much.
Jay