Added session manager using shared preferences