Basic session handling at client side.
Offline login enabled once user is logged in using network.