开发者

session problem with IE8 in php

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜