PHP sessions not working/ SSL issue? -
my site online, used code redirect coming page.
<?php if(!isset($_get['en'])) { header("location: /comingsoon"); exit; } i added third party ssl site , when removed bit of code initial site come up, after log in page sessions not being stored.
when introduce bit of code (earlier) in works.
this has got me baffled.
i used bit of code in htaccess redirect http https.
rewritecond %{https} off rewriterule (.*) https://%{http_host}%{request_uri} not sure if has it.
function redirecttohttps() { if($_server['https']!="on") { $redirect= "https://".$_server['http_host'].$_server['request_uri']; header("location:$redirect"); } } // call above function in page have redirect https.
Comments
Post a Comment