标记闪存SESSION数据为过期
void Module_Session::expire_flash( )
void
public function expire_flash()
{
if (!empty(Session::$flash))
{
foreach (Session::$flash as $key => $state)
{
if ( $state === 'old' )
{
// Flash has expired
unset(Session::$flash[$key], $_SESSION[$key]);
}
else
{
// Flash will expire
Session::$flash[$key] = 'old';
}
}
}
}