Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to log in without a popup problem?

Status
Not open for further replies.

leifoet

Technical User
Jan 31, 2016
206
BE
To be able to log in to a website, the popup protection for the site-URL must be turned off.

How can I change the code below so that the popup protection in the user's browser has no interest (so it can be on or off)?
Thanks for tips.

<%
IF Session("UID")&"" = "" then ' the session is empty
response.redirect("url_exit.htm")
ELSE
url = "succespage.htm"
response.write("<script>" & vbCrLf)
response.write("window.open('" & url & "');" & vbCrLf)
response.write("</script>")
END IF
 
would recommend not using a pop up at all, you can grab the page they asked for and pass it into the login page so you can redirect once they have logged in. You could use a modal dialog if you really had to.

Greg Griffiths
Livelink Certified Developer & ECM Global Star Champion 2005 & 2006
 

Thanks ggriffit - That is exactly what I have in mind: no popups (anymore).
But how should my code above be changed / adjusted? - I am not so skilled with that yet.
 
to do the redirect to a login page,you will need to change the ELSE part to be a redirect to your new login page.

for a modal dialog you can find plenty of examples in google.

Greg Griffiths
Livelink Certified Developer & ECM Global Star Champion 2005 & 2006
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top