Refinded session mamagement