Jump to content
Larry Ullman's Book Forums

Recommended Posts

Hi Larry,

I am having the strangest issue with $_SESSION, which I have used many times before following the guidance in your books, and have never had a problem like this.

For several days now I have been trying to debug an issue in a login script in a website. In a nutshell, a $_SESSION gets set in one module but even though I check that the $_SESSION (session_start())starts OK in another module in the same domain, and the $_SESSION (PHPSESSID) cookie is in the browser OK, the $_SESSION data are not there via if (!isset($_SESSION['MGCC_member_data']))  check.

BUT if I log in again, without closing the browser down, then everything works fine!

As far as I can tell, I have not sent anything to the browser before the $_SESSION data are checked.

I have raised this with the hosting folks but would appreciate any insights that you may have.

Thanks as always, Necuima

Link to comment
Share on other sites

 Share

×
×
  • Create New...