1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/manual/codes/Basic Components - Session - Getting session state.php

17 lines
418 B
PHP
Raw Normal View History

2006-07-24 01:08:06 +04:00
<?php
switch($session->getState())
case Doctrine_Session::STATE_ACTIVE:
// session open and zero open transactions
break;
case Doctrine_Session::STATE_ACTIVE:
// one open transaction
break;
case Doctrine_Session::STATE_BUSY:
// multiple open transactions
break;
case Doctrine_Session::STATE_CLOSED:
// session closed
break;
endswitch;
?>