Changeset 20666

Show
Ignore:
Timestamp:
10/04/08 11:10:40 (3 months ago)
Author:
anatoo
Message:

クッキー周り修正

Location:
events/phpframework/plain_php/trunk/core
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • events/phpframework/plain_php/trunk/core/Action.php

    r20336 r20666  
    4545    protected function setCookie($name, $val) 
    4646    { 
    47         setcookie($name, $val, time() + $this->getConfig()->cookie_timeout, $this->context->cookiePath, $this->context->cookieDomain); 
     47        setcookie($name, $val, time() + $this->getConfig()->cookie_timeout); 
    4848    } 
    4949 
  • events/phpframework/plain_php/trunk/core/ApplicationContext.php

    r20610 r20666  
    33class ApplicationContext 
    44 
    5     protected $baseUrl, $basePath, $templateBaseUrl, $templateBasePath, $dsn, $dbUser, $dbPassword, $cookieDomain, $cookiePath; 
     5    protected $baseUrl, $basePath, $templateBaseUrl, $templateBasePath, $dsn, $dbUser, $dbPassword; 
    66    function __get($name) 
    77    { 
     
    4747    } 
    4848 
    49     function setCookiePath($v) 
    50     { 
    51         $this->cookiePath = $v; 
    52         return $this; 
    53     } 
    54     function setCookieDomain($v) 
    55     { 
    56         $this->cookieDomain = $v; 
    57         return $this; 
    58     } 
    5949}