I had problem with php session. When I reload the page it create new session ID. Finally I fixed the problem. If you did not set the session.save_path by default it will be like
session.save_path="/tmp/"
in php.ini. change this to
session.save_path=/tmp
without quote(“”) sign.