Skip to content

Commit

Permalink
セッションのIP取得メソッドを差し替え
Browse files Browse the repository at this point in the history
  • Loading branch information
ysugimoto committed Aug 27, 2012
1 parent 59e124c commit 742e2ff
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion seezoo/core/classes/drivers/session/Cookie_session.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function _sessionCreate()
// create auth info data
$this->_authData = array(
'sessionID' => $sessid,
'ipAddress' => $this->req->server('REMOTE_ADDR'),
'ipAddress' => $this->req->ipAddress(),
'userAgent' => $this->req->server('HTTP_USER_AGENT'),
'lastActivity' => time()
);
Expand Down
4 changes: 2 additions & 2 deletions seezoo/core/classes/drivers/session/Database_session.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ protected function _sessionCreate()
// create auth info data
$authData = array(
'session_id' => $sessid,
'ip_address' => $this->req->server('REMOTE_ADDR'),
'user_agent' => substr(this->req->server('HTTP_USER_AGENT'), 0, 50),
'ip_address' => $this->req->ipAddress(),
'user_agent' => substr($this->req->server('HTTP_USER_AGENT'), 0, 50),
'last_activity' => $this->_time,
'user_data' => ''
);
Expand Down
2 changes: 1 addition & 1 deletion seezoo/core/classes/drivers/session/File_session.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected function _sessionCreate()
// create auth info data
$authData = array(
'sessionID' => $sessid,
'ipAddress' => $this->req->server('REMOTE_ADDR'),
'ipAddress' => $this->req->ipAddress(),
'userAgent' => $this->req->server('HTTP_USER_AGENT'),
'lastActivity' => $this->_time
);
Expand Down
2 changes: 1 addition & 1 deletion seezoo/core/classes/drivers/session/Memcache_session.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ protected function _sessionCreate()
// create auth info data
$authData = array(
'session_id' => $sessid,
'ip_address' => $this->req->server('REMOTE_ADDR'),
'ip_address' => $this->req->ipAddress(),
'user_agent' => $this->req->server('HTTP_USER_AGENT'),
'last_activity' => time(),
'user_data' => ''
Expand Down
2 changes: 1 addition & 1 deletion seezoo/core/classes/drivers/session/Php_session.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ protected function _sessionCreate()
{
// create auth info data
$authData = array(
'ipAddress' => $this->req->server('REMOTE_ADDR'),
'ipAddress' => $this->req->ipAddress(),
'userAgent' => $this->req->server('HTTP_USER_AGENT'),
'lastActivity' => time(),
'sessionID' => $this->_generateSessionID()
Expand Down

0 comments on commit 742e2ff

Please sign in to comment.