Check if the cookie saved in a priori session is still valid