Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - password protecting custom pages
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

password protecting custom pages

 Post Reply Post Reply
Author
anim8 View Drop Down
Newbie
Newbie


Joined: 02 September 2005
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote anim8 Quote  Post ReplyReply Direct Link To This Post Topic: password protecting custom pages
    Posted: 05 March 2006 at 9:29am
Hi Guys,

I am trying to restrict access to a new interview page on my forum. Can somebody help me do this. I have tried the
If Session("IsLoggedOn") <> True then
            Response.Redirect("/forum/insufficient_permission.asp")
            'Or anywhere else you want to send them
 
             Response.End
End If
method but it still allows me to access the page when I am logged out.

Thanks
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 06 March 2006 at 10:25am
The simplest option is to create a new 'Interview' forum, then use Web Wiz Forums own built in permission system to deny access to Guests (non-logged in users)
Back to Top
anim8 View Drop Down
Newbie
Newbie


Joined: 02 September 2005
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote anim8 Quote  Post ReplyReply Direct Link To This Post Posted: 06 March 2006 at 12:40pm
Hi Borg,

thanks for the reply.
I have some custom formatting requirements so I would like to have a separate page incorporated. Is this possible.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 06 March 2006 at 1:00pm
Try then along the lines:-

If intGroupID = 2 Then Redirect

None logged in users are in the Guest Group which has the ID value of 2
Back to Top
anim8 View Drop Down
Newbie
Newbie


Joined: 02 September 2005
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote anim8 Quote  Post ReplyReply Direct Link To This Post Posted: 07 March 2006 at 9:19am
Hi Borg,

Struggling with syntax. giving me a variable undefined error.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.