Tadashi Okoshi
slash****@users*****
2005年 12月 19日 (月) 12:10:29 JST
Index: affelio/lib/Affelio/Managing/SessionManager.pm
diff -u affelio/lib/Affelio/Managing/SessionManager.pm:1.2 affelio/lib/Affelio/Managing/SessionManager.pm:1.3
--- affelio/lib/Affelio/Managing/SessionManager.pm:1.2 Fri Dec 16 18:38:17 2005
+++ affelio/lib/Affelio/Managing/SessionManager.pm Mon Dec 19 12:10:29 2005
@@ -14,7 +14,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
-# $Id: SessionManager.pm,v 1.2 2005/12/16 09:38:17 slash5234 Exp $
+# $Id: SessionManager.pm,v 1.3 2005/12/19 03:10:29 slash5234 Exp $
package Affelio::Managing::SessionManager;
{
@@ -86,10 +86,21 @@
#
my %param = @_;
+ if($self->{ss}){
+ debug_print("SessionManager::startup: found existing ["
+ . $self->{ss}->id . "]");
+ $self->{ss}->delete();
+ undef($self->{ss});
+ debug_print("SessionManager::startup: deleted.");
+ }
+
$self->{ss} = new CGI::Session("driver:File",
undef,
{Directory=> $af->{site__session_dir}});
+ debug_print("SessionManager::startup: created ["
+ . $self->{ss}->id . "]");
+
#Set values into session
$self->{ss}->param("user_afid", $param{user_afid});
$self->{ss}->param("user_nickname", $param{user_nickname});