getting session data and server data