crackerjacks wrote:
crackerjacks wrote:
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.