I have a simple code to check counter.
session_start();
if(!isset($_SESSION['footerimg']) || empty($_SESSION['footerimg']) ){
$_SESSION['footerimg']='sunset.jpg';
echo $_SESSION['f开发者_如何学Goooterimg'];
}
But all time this is printing "sinsut.jpg" when is page is loading my session is being destroy. This is running well in FF but problem happeninig with IE and chrome.
This is most definitely because IE8 doesn't accept cookies from localhost
. Check this question.
精彩评论