shifted the session functions to a single class;
added the deprecation notices;