Forum Moderators: coopster
//force redirect to secure page
if($_SERVER['SERVER_PORT'] != '443') { HEADER
('Location: ['.$_SERVER['HTTP_HOST'].$_SERVER...]
['REQUEST_URI']); exit(); }
This works great to refer the requested page to https instead of http, but the entire session from then on is in https. Is there a way to add to this so that it refers back to http once the page is left? I've seen some solutions using the htaccess file, but if possible it just seems easier to me to do it on just the selected pages that I need to be secure. Thank you.