选择语言 :

 Module_Session::expire_flash

标记闪存SESSION数据为过期

void Module_Session::expire_flash( )
返回值
  • void
File: ./modules/session/session.class.php
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';
            }
        }
    }
}