Trying to get session info using directive