Session expiration fix