Tag: session

Resolving Session Not Saving

Tonight, I’ve encountered a very strange situation where the session data was empty after each page reload. Have you ever had an issue with the session data not being set after a page refresh and the session has been for sure been started using session_start() ?

I modified the php.ini file located on the server for the line containing session.save_path to a temporary directory on the server.

session.save_path = /tmp

After making the change, sessions were now available and working again.