Our code will start the session, but it can close it after as well. It is suggested to close sessions when they aren't in use because it can speed up processing particularly when using AJAX. Try adding @session_start() above the line where you are setting your session variables. Maybe it is closed so they won't store properly.