Re-login if session cookies have expired

Change-Id: I45649e5a0af172d4aa9f7187044d92b3f706a9cb