예제 #1
0
 /**
  * This method is called when the session has been initialized (loaded or created).
  *
  * @return void
  *
  * @see YapepBase\Session.SessionAbstract::sessionInitialized()
  *
  * @todo move cache limiter to response&controller
  */
 protected function sessionInitialized()
 {
     parent::sessionInitialized();
     if ($this->cacheLimitersEnabled) {
         $this->response->addHeader('Expires', 'Thu, 19 Nov 1981 08:52:00 GMT');
         $this->response->addHeader('Cache-Control', 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
         $this->response->addHeader('Pragma', 'no-cache');
     }
 }