Hello. I was wondering if I could get some help on a problem I am having.
I am trying to create a classifieds section that uses the forums sign-in functionality. I am basically making it a members only area so that login is being checked and if the user is not logged in redirects back to the login / registration pages.
My classifieds page has the following code:
<!--#include file="../forum/common.asp" -->
<%
If lngLoggedInUserID = 2 then
Call closeDatabase()
response.redirect("" & RootLevel & "forum/login_user.asp?returnURL=classifieds.asp")
End If
Call closeDatabase()
%>
One issues is that my classifieds page is not within the forum. I was wondering if I could just create a redirct.asp page (within the forum directory) that will redirct the user to whatever section of my site they came from. I plan to have other areas (members only) later.
As of now the code above does redirct to a login page, but after logging in I am still redirected back to the default.asp within the forum and I want to go back to the classifieds section.
I have searched the forum and tried other suggestions but so far none have worked so I thought I would start a new thread.
Thoughts?
Thanks in advance!