[BLUG] Perl CGI::Session & Redirection from https to http

Peter G. Brown blug_at_mailman.cs.indiana.edu
Wed, 10 Jan 2007 14:39:03 -0500


Hello,

1. I would like to know if anyone has/is using the Perl CGI::Session module as 
I have some questions which googling has not resolved.

2. I have seen code for asp in how to redirect from https (same server in my 
case) to http but haven't seen anything that has worked using perl - (print 
redirect ('http://host/news.html'); ) is not redirecting to the http but the 
https.

3. Which raised this question - my login page is through the https port (again 
same server) e.g. https://ephesus/login.html (test server) but if I enter 
http://ephesus/login.html (the non secure 80 port) it processes my details - 
all non encrypted. I would like some kind of error on loading the page (not 
after entering username & password) and a redirect to https should this 
happen.

Thank you,
Peter Brown