How do set one of my pages to require the user to login
How do set one of my pages to require the user to login
I have my own custom pages, some of which I need the user to login before visiting. How can I set my pages to be included in the list which requires the user to be logged in?
Re: How do set one of my pages to require the user to login
See /App_Data/ablecommerce.config; add an entry to the <securepages> config section.
Nick Cole
http://www.ethofy.com
http://www.ethofy.com
Re: How do set one of my pages to require the user to login
Thanks for the response.
I have actually already tried that, but it didn't seem to work. In the <securepages>/<directories> section, I added:
<add path="myfolder" recurse = true />
but nothing happened. I also tried removing the entry for members to see if the members pages would no longer ask for a login, but that had no effect either. What might I be doing wrong?
I have actually already tried that, but it didn't seem to work. In the <securepages>/<directories> section, I added:
<add path="myfolder" recurse = true />
but nothing happened. I also tried removing the entry for members to see if the members pages would no longer ask for a login, but that had no effect either. What might I be doing wrong?
Re: How do set one of my pages to require the user to login
Doh. That controls SSL - my mistake. You need to add an authorization reference in a web.config file. See the /Members/Web.config for an example:
Code: Select all
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
Nick Cole
http://www.ethofy.com
http://www.ethofy.com
Re: How do set one of my pages to require the user to login
That's the ticket.
Thanks!
Thanks!
Re: How do set one of my pages to require the user to login
OK -- That works. Except that once you engage that code in the web.config file and also have a captcha requirement for Admins, the admin users cannot login again because the captcha doesn't display. Seems that the captcha image isn't allowed to display. Remove the code referenced above and the captcha reappears and all is well.nickc wrote:Code: Select all
<system.web> <authorization> <deny users="?"/> </authorization> </system.web>
Hmmmm......
Not sure where to start on this one.
Re: How do set one of my pages to require the user to login
Actually -- maybe this is the answer here:
viewtopic.php?f=42&t=7286&start=0&hilit=require+login
UPDATE:
Yep..... exactly the answer needed....
Refer to the link in this post for the CORRECT way to ensure that all users are forced to login, but the Captcha is enabled on the login script for Admin accounts.
viewtopic.php?f=42&t=7286&start=0&hilit=require+login
UPDATE:
Yep..... exactly the answer needed....
Refer to the link in this post for the CORRECT way to ensure that all users are forced to login, but the Captcha is enabled on the login script for Admin accounts.