Attempted fix for session expiry issue.