0

I have a simple code to check counter.

     session_start();

if(!isset($_SESSION['footerimg']) || empty($_SESSION['footerimg']) ){
         $_SESSION['footerimg']='sunset.jpg';
        echo $_SESSION['footerimg'];
      }

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.

hakre
  • 193,403
  • 52
  • 435
  • 836
Ajay
  • 11
  • 1

1 Answers1

2

This is most definitely because IE8 doesn't accept cookies from localhost. Check this question.

Community
  • 1
  • 1
Igor Zinov'yev
  • 3,676
  • 1
  • 33
  • 49
  • Well, otherwise I don't know what could be the cause. Maybe you should update the question and post some details about how your development environment is set up? – Igor Zinov'yev Jun 30 '10 at 11:30