There should be only one instance (Global Instance / Global Variable) of SessionManager, You should not create it at any other time. This is very reason (as I said in my earlier post) SessionManager will an ideal candidate for a Singleton class pattern.
So when you need to access user info you should use the global instance of SessionManager (not create a new one)





Reply With Quote

Bookmarks