session: fixes login when no cache backend exists
Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>