updated sessionCookie get method