Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Using WWF as a Login Manager
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Using WWF as a Login Manager

 Post Reply Post Reply Page  12>
Author
bhall007 View Drop Down
Newbie
Newbie


Joined: 22 November 2005
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote bhall007 Quote  Post ReplyReply Direct Link To This Post Topic: Using WWF as a Login Manager
    Posted: 16 December 2005 at 3:03pm
I was wondering if there was any way to use Web Wiz Forums as a login manager to password-protect certain pages using the same user database as WWF.  I tried inserting the following into the header of a test .asp file to see if it would prompt to authenticate before accessing the page:

<% @ Language=VBScript %>
<% Option Explicit %>
<!--#include file="forum/common.asp" -->
But it did nothing and still accessed the page.  I am aware of the Breath of Air Login Manager and the plug-in that allows you to link to the WWF database.

I wonder if it's possible to simply insert some "include" into the header of an .asp file to protect it and take you to the login page and require a login before it will display the page.

Thanks!

Back to Top
arpee View Drop Down
Groupie
Groupie


Joined: 09 November 2004
Status: Offline
Points: 57
Post Options Post Options   Thanks (0) Thanks(0)   Quote arpee Quote  Post ReplyReply Direct Link To This Post Posted: 29 December 2005 at 3:25pm
That's an extremely simple thing to do. If you still need help let me know
Back to Top
bhall007 View Drop Down
Newbie
Newbie


Joined: 22 November 2005
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote bhall007 Quote  Post ReplyReply Direct Link To This Post Posted: 29 December 2005 at 9:55pm
arpee,

Thanks for the reply--I was starting to lose hope.

Please, share!

Smile
Back to Top
arpee View Drop Down
Groupie
Groupie


Joined: 09 November 2004
Status: Offline
Points: 57
Post Options Post Options   Thanks (0) Thanks(0)   Quote arpee Quote  Post ReplyReply Direct Link To This Post Posted: 29 December 2005 at 10:33pm
Assuming these pages are on the same site as your forum.
 
At the top of each page you want to protect:
 

If Session("IsLoggedOn") <> True then

            Response.Redirect("/forum/insufficient_permission.asp")
            'Or anywhere else you want to send them
 
             Response.End
End If
Back to Top
bhall007 View Drop Down
Newbie
Newbie


Joined: 22 November 2005
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote bhall007 Quote  Post ReplyReply Direct Link To This Post Posted: 30 December 2005 at 2:40pm
arpee,

Thanks for the reply.  I tried including the above at the very top of a test ASP file, but it didn't work.  What else am I missing?  Sorry!  I'm not an ASP programmer--noob!  Thanks!
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 30 December 2005 at 4:47pm
You'll need to provide a little more detail than "it didn't work".Wink

Try turning off friendly http errors and then posting the entire error you receive.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
arpee View Drop Down
Groupie
Groupie


Joined: 09 November 2004
Status: Offline
Points: 57
Post Options Post Options   Thanks (0) Thanks(0)   Quote arpee Quote  Post ReplyReply Direct Link To This Post Posted: 30 December 2005 at 9:08pm
Yes, do what dpyers said. The code will work if on the same site as your forum.
 
Be sure you encapsulate the code :
 

<%

If Session("IsLoggedOn") <> True then
            Response.Redirect("/forum/insufficient_permission.asp")
            'Or anywhere else you want to send them
 
             Response.End
End If
%>
We're all stars. Some just shine brighter than others.
Back to Top
aks427 View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 06 December 2003
Location: United States
Status: Offline
Points: 276
Post Options Post Options   Thanks (0) Thanks(0)   Quote aks427 Quote  Post ReplyReply Direct Link To This Post Posted: 30 December 2005 at 11:43pm
Make sure you have the include file you had over that code that bhall007 posted.  It'll look something like this...
<!--#include file="forum/common.asp" -->

If Session("IsLoggedOn") <> True then

            Response.Redirect("/forum/insufficient_permission.asp")
            'Or anywhere else you want to send them
 
             Response.End
End If
Back to Top
 Post Reply Post Reply Page  12>

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.