get the session from the container in ajaxPrefilter