Changes for session and cookie.