开发者

session problem with IE8 in php

开发者 https://www.devze.com 2023-01-05 09:29 出处:网络
I have a simple code to check counter. session_start(); if(!isset($_SESSION[\'footerimg\']) || empty($_SESSION[\'footerimg\']) ){

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

精彩评论

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

关注公众号