Occur session opened or closed event