Hello,
I am writing a login script for my companys site and am having a problem.
I want users to be directed back to the login page if they haven’t logged in.
At the top of the page called index I have placed the following code.
<%if Session("CustomerType") <> "WMQ" and _
Session("CustomerType") <> "AFF" then
Response.Clear
Response.Redirect("op/login.asp?Access=op/index.asp")
end if %>
This results in the page cannot be displayed and the following in the address bar.
Notice the two “op” s in the line.
If I add a / before the first op in the redirect statement I get this.
If I leave the / in front of the first op and add a / before the second op I get this in the address bar and no page displayed.
This should be a no brainer but I can’t seem to get it right.
Thanks
DWG
I am writing a login script for my companys site and am having a problem.
I want users to be directed back to the login page if they haven’t logged in.
At the top of the page called index I have placed the following code.
<%if Session("CustomerType") <> "WMQ" and _
Session("CustomerType") <> "AFF" then
Response.Clear
Response.Redirect("op/login.asp?Access=op/index.asp")
end if %>
This results in the page cannot be displayed and the following in the address bar.
Notice the two “op” s in the line.
If I add a / before the first op in the redirect statement I get this.
If I leave the / in front of the first op and add a / before the second op I get this in the address bar and no page displayed.
This should be a no brainer but I can’t seem to get it right.
Thanks
DWG