svnno****@sourc*****
svnno****@sourc*****
2009年 4月 15日 (水) 12:49:56 JST
Revision: 36 http://svn.sourceforge.jp/view?root=frameworkspider&view=rev&rev=36 Author: m_nakashima Date: 2009-04-15 12:49:56 +0900 (Wed, 15 Apr 2009) Log Message: ----------- Modified Paths: -------------- current/DATA/lib/spider/HttpRequest.class.php -------------- next part -------------- Modified: current/DATA/lib/spider/HttpRequest.class.php =================================================================== --- current/DATA/lib/spider/HttpRequest.class.php 2009-04-15 03:49:23 UTC (rev 35) +++ current/DATA/lib/spider/HttpRequest.class.php 2009-04-15 03:49:56 UTC (rev 36) @@ -150,8 +150,7 @@ } else { $key = $scope.'/'.$key; } - $session_var = new spider_HttpSessionVar( $value, $scope ); - $_SESSION[$key] = serialize( $session_var ); + $_SESSION[$key] = serialize( $value ); } /** * セッション変数を取得します @@ -164,15 +163,13 @@ while( strlen($current_scope) > 0 ) { $target_key = $current_scope.'/'.$key; if( isset( $_SESSION ) && isset($_SESSION[$target_key]) ) { - $value = $_SESSION[$target_key]; - return $value; + return unserialize($_SESSION[$target_key]); } $current_scope = dirname( $current_scope ); } $target_key = $this->_getGlobalSessionKey( $key ); if( isset( $_SESSION ) && isset($_SESSION[$target_key]) ) { - $value = $_SESSION[$target_key]; - return $value; + return unserialize($_SESSION[$target_key]); } return null; @@ -193,7 +190,6 @@ } $target_key = $this->_getGlobalSessionKey( $key ); if( isset( $_SESSION ) && isset($_SESSION[$target_key]) ) { - $value = $_SESSION[$target_key]; return true; } return false;