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.
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.
Good article
ReplyDeletehttps://wordpress-special-plugin.blogspot.co.id