コード例 #1
0
    protected function sessionCheck()
    {
        $esiKey = isset($_GET['key']) ? $_GET['key'] : null;
        if (   $esiKey
            && $esiKey != static::ANONYMOUS_ESIKEY
            && !self::user()
        ) {
            // logged-in key given and no eZ Session.
            HttpTool::noHTTPCache();
            CookieTool::destroyCookie(MMUsers::COOKIE_KEY);

            $newRelicApi = new \klpNrApi();
            $newRelicApi->setCustomMetric( 'Custom/Issues/HalfLogged', 1 );

            $this->tpl()->setVariable(  'forceUserLogout',
                                        MMUsers::COOKIE_KEY . '=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;'
            );
        }

        return true;
    }
コード例 #2
0
ファイル: Page.php プロジェクト: Rgss/imp
 /**
  * page url
  * 
  */
 protected function _url($page, $name = null)
 {
     return HttpTool::mergeUrlParam($this->url, array($this->param => $page));
 }