Folowing code always redirect me to my page '/index.php?err=2' only in Internet explorer. Chrome, firefox and safari doesnt have this issue so this is clearly issue of session only in IE. I have tried following suggestions given on the web but it doesn't helped me anyhow:
How to prevent Browser cache for php site
How to change the session timeout in PHP?
<?php
if(!isset($_SESSION['sess_useremail'])){
header('Location: index.php?err=2');
}else{
#code if session is not expired
}
?>
and tried set this as header also.. i thought one of this can be issue.. but IE still throws me out to index.php..Below code is taken from here.
<?php header('P3P: CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
?>
Any help will be appreciated. Thank you.