Print Page | Close Window

password protecting other pages using...

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=26711
Printed Date: 29 March 2026 at 12:51am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: password protecting other pages using...
Posted By: jarv
Subject: password protecting other pages using...
Date Posted: 19 December 2008 at 4:39pm
is it possible to secure my other web pages using the forum login?



Replies:
Posted By: jarv
Date Posted: 23 December 2008 at 9:23am
any help available please?


Posted By: WebWiz-Bruce
Date Posted: 23 December 2008 at 10:21am
The login functions are in the file functions/functions_login.asp

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Scotty32
Date Posted: 23 December 2008 at 5:24pm
I've got a tutorial on how to make http://www.s2h.co.uk/wwf/tips/intergration/member-only-pages.asp - Member-Only Pages .

-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: jarv
Date Posted: 23 January 2009 at 11:40am
I tried he tutorial but as my files didn't reside within the forum directory it didn't work?!

Can anyone please help?


Posted By: jarv
Date Posted: 23 January 2009 at 12:28pm
I might just take the default.asp file and rename it but i want to protect my pages outside of the forum?!


Posted By: WebWiz-Bruce
Date Posted: 23 January 2009 at 5:00pm
Most of the forums login and sessions functions are called from the common.asp file

You could try using of modifying that within your site.

The forums login form is an include file called login_form_inc.asp in the includes folder.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: crackerjacks
Date Posted: 25 January 2009 at 11:12pm
Originally posted by Scotty32 Scotty32 wrote:

I've got a tutorial on how to make http://www.s2h.co.uk/wwf/tips/intergration/member-only-pages.asp" rel="no follow - Member-Only Pages .
 
I have tried this with no success as well.


Posted By: crackerjacks
Date Posted: 25 January 2009 at 11:17pm
Originally posted by crackerjacks crackerjacks wrote:

Originally posted by Scotty32 Scotty32 wrote:

I've got a tutorial on how to make http://www.s2h.co.uk/wwf/tips/intergration/member-only-pages.asp" rel="no follow - Member-Only Pages .
 
I have tried this with no success as well.
 
Making some headway, but now instead of proceeding to the page that I was trying to go to, it takes me to login page but does not go back to the orginal page I wanted to go to after I log in. Any sugestions?


Posted By: crackerjacks
Date Posted: 28 January 2009 at 11:32pm
Any sugestions on this? Anyone?


Posted By: jarv
Date Posted: 11 February 2009 at 11:15am
Please can someone help us?


Posted By: jarv
Date Posted: 11 February 2009 at 11:24am
I have just tried


<% If lngLoggedInUserID = "" THEN
response.Redirect("login_user.asp")
END IF%>

and it still goes to the page, it doesn't redirect?!


Posted By: Scotty32
Date Posted: 11 February 2009 at 6:03pm
Originally posted by jarv jarv wrote:

I have just tried


<% If lngLoggedInUserID = "" THEN
response.Redirect("login_user.asp")
END IF%>

and it still goes to the page, it doesn't redirect?!



That would not work because that variable is a number and not a text string.

It will be 1 for the default admin, 2 for guests and the rest of the members will be which ever number the database assigned them, so it would never be "empty" as it were.

Also, as stated in my tutorial you should always close the database before redirecting.



-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: Scotty32
Date Posted: 11 February 2009 at 6:08pm
Originally posted by crackerjacks crackerjacks wrote:

Originally posted by crackerjacks crackerjacks wrote:

Originally posted by Scotty32 Scotty32 wrote:

I've got a tutorial on how to make http://www.s2h.co.uk/wwf/tips/intergration/member-only-pages.asp" rel="no follow - Member-Only Pages .
 
I have tried this with no success as well.
 
Making some headway, but now instead of proceeding to the page that I was trying to go to, it takes me to login page but does not go back to the orginal page I wanted to go to after I log in. Any sugestions?


My tutorial simply allows people to block access to guests on pages off their website outside of the forum.

You can have the user taken back to the page they was redirected from by adding the following in red:

<%
If lngLoggedInUserID = 2 then
Call closeDatabase()
response.redirect("/forum/login_user.asp?returnURL=pagename.asp")
End If

%>


How ever if your protected page is outside of the forums folder (eg not in www.site.com/forum/) then the forum will strip out the directory and attempt to load the page within the forums folder (eg www.site.com/forum/pagename.asp)

This is designed to stop hackers redirecting users away from your site or injecting malicous code into your website.


-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net