Added some functions for the session managament

Added a session variable system to the session management system.