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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -