Even though it starts the session, it will close it when it thinks it is done. You can access and view session variables after the session is closed, but you can't store or update them.
Whenever you are storing or updating a session variable you should add a line to make sure the session is started above it:
@session_start()
You should probably also close the session once you are done for efficiency particularly if you are using AJAX on your site:
session_commit();