Added login session support.