changed session model of access class to object model

session model of access can lead to many ambiguity like when a user
login