http://www.perlmonks.org?node_id=939537


in reply to Re: How do I Implement a One-Click Login Screen on the Web?
in thread How do I Implement a One-Click Login Screen on the Web?

In your "else" clause, instead of creating another form ("click here to continue", etc.), just issue a redirect (which goes to the same place your button-click takes you.)

I have already printed my header, and as far as I can tell a redirect like this:

print redirect(-location=>"http://my.site.org/Switchboard.cgi");

only works if you print it before you print the header. If I do it with Javascript I still need a button-click event to trigger it. Also, session information is in the form items and will be written into cookies on the receiving script. Cookies have to be written with the header.