×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to log in without a popup problem?

How to log in without a popup problem?

How to log in without a popup problem?

(OP)
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

RE: How to log in without a popup problem?

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
http://www.greggriffiths.org/livelink/

RE: How to log in without a popup problem?

(OP)

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.

RE: How to log in without a popup problem?

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
http://www.greggriffiths.org/livelink/

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close