I would like to know if it is possible to determine what happens when session expires in yii is it possible to do an action just before the session expires
I would like to know if it is possible to determine what happens when session expires in yii is it possible to do an action just before the session expires
You can try this
if(!isset(Yii::app()->session['abc']))
do_something();
Answer is no and yes.
No - because there is no such even handling available in Yii to help you with this.
Yes - because you can use javascript workaround:
use javascript setTimeout function and sync it with session timeout value, in javascript timeout do whatever you want.