This is my first question here(forgive me if i've done anything stupid).I really like this forum and been a regular visitor.
Well,I have a login script on iis server and it works without any issues on Chrome,Mozilla,opera but not on Safari and IE (below are the lines of code from the same) :
site/login/login.php
session_start();
$_SESSION['signed_in'] = true; //i checked $_SESSION['signed_in'] here and it is "1".
session_write_close();
header("Location: ../dashboard.php");exit;
site/dashboard.php
session_start();
if($_SESSION['signed_in'] != true)
{
// well $_SESSION['signed_in'] is empty :-( and goes back to index.
header("Location: index.php");exit;
}
EDIT :
Hi, i just found IE and Safari's are not allowing cookies (it says cookies blocked) when i changed the settings and allowed cookies it worked in both the browser, but it is not a proper solution because it wont make any sense if i need to ask all the visitors to allow cookies on their browsers. Please help :-(