Pages

▼

Tuesday, November 6, 2012

Session data lost in chrome and Internet Explorer

In your header file or which ever file that loads first add the following piece of code

if(session_id()=='')
session_start();

This is a very simple way to start of session.Mostly now a days frameworks have this set already in their bootstrap files but still if you are loosing session you can start off session with this.

1 comment:

  1. Good article

    https://wordpress-special-plugin.blogspot.co.id

    ReplyDelete