ASP VBScript Details :: ASP VBScript login page
This thread was displayed: 930 times
Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.
For more information about the affected products visit: www.interaktonline.com/Support/
Pablo Jones
10-18-2006 13:36:35 GMT +2
|
Hi,
I have created a website and the homepage is accessible to anyone. But as soon as the user wants to go to any other page, they are prompted to login. If the log in is successful, they are taken back to the homepage and from there the user can access any page on my site. What can I do to take the user to the page that they originally intended to go to after logging(whatever page that may be) instead of first being taken back to the home, because I'm thinking that after people log in and see the home page, they may think that something isn't working right, because they have to click twice to get to the page.
I downloaded my code from the Net and just modified it, so if you need me to post my code, I will gladly do so. Thanks in advance for your prompt responses.
|
|
|
Pablo Jones
10-19-2006 10:56:57 GMT +2
|
Hi,
I used the following code to try and redirect the person to their intended destination after they logged in but I failed<% = Request.ServerVariables("HTTP_REFERER") %> If I place this code on the login page, the value it picks up is the homepage and if i put it in my verify.asp page, it picks up the login page. But it wouldn't pick up my intended destination. The code in my protected files are as follows:
<%
'Check if user is logged in
if Session("name") = "" then
'If not, go to login page
Response.Redirect("login.asp")
else
'If, build page
Response.Write("<title>ASP Page</title>")
Response.write("<center>Welcome " & Session("name") & "<br><a href=logout.asp>Logout</a></center>")
end if
%>
Any help would be appreciated.
|
|
|
Ionut MOICIANU
10-20-2006 17:49:17 GMT +2
|
Hi,
You should know that our MX User Login extension (part of Kollection bundle) handles this automatically.
regards,
ionut
|
|
|