[Affelio-cvs 917] CVS update: affelio/bin

Back to archive index

Tadashi Okoshi slash****@users*****
2005年 12月 18日 (日) 14:26:55 JST


Index: affelio/bin/get_content.cgi
diff -u affelio/bin/get_content.cgi:1.29 affelio/bin/get_content.cgi:1.30
--- affelio/bin/get_content.cgi:1.29	Sun Dec 18 12:32:51 2005
+++ affelio/bin/get_content.cgi	Sun Dec 18 14:26:55 2005
@@ -16,7 +16,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: get_content.cgi,v 1.29 2005/12/18 03:32:51 slash5234 Exp $
+# $Id: get_content.cgi,v 1.30 2005/12/18 05:26:55 slash5234 Exp $
 
 use strict;
 
@@ -66,13 +66,20 @@
     $session = new CGI::Session(undef, 
 				$sid, 
 				{Directory=> $af->{site__session_dir}});
+    debug_print("getcontent.cgi: startup sid given=[" . $sid   . "]");
+    debug_print("getcontent.cgi: startup sid new  =[" . $session->id . "]");
     my $type = $session->param("type");
+    if( $sid != $session->id ){
+	debug_print("getcontent.cgi: session deleted.");
+	$session->delete();
+	undef($session);
+    }
 
     if(!$session){
-	debug_print("get_content: session not found. [pb]");
+	debug_print("get_content: session not found.");
 	$ck_visitor_type=0;
 	$ck_visitor_type_str="pb"; 
-	$ck_visitor_afid = $session->param("user_afid");
+	$ck_visitor_afid = "";
     }elsif($type eq "self"){
 	debug_print("get_content: session found. [self]");
 	$ck_visitor_type=3; 
@@ -91,6 +98,7 @@
     }
 }
 
+
 #CFID check
 my $CFID_timestamp;
 my $CFID_expire;


Affelio-cvs メーリングリストの案内
Back to archive index