Try to maintain session with cookies