added assertion
problem at determining if session is active while regenerating its id