Check session state with real ajax call