[xoops-cvslog 4425] CVS update: xoops2jp/html/modules/user/preload/Primary

Back to archive index

Minahito minah****@users*****
2006年 9月 2日 (土) 15:10:02 JST


Index: xoops2jp/html/modules/user/preload/Primary/Primary.class.php
diff -u xoops2jp/html/modules/user/preload/Primary/Primary.class.php:1.1.2.6 xoops2jp/html/modules/user/preload/Primary/Primary.class.php:1.1.2.7
--- xoops2jp/html/modules/user/preload/Primary/Primary.class.php:1.1.2.6	Sun Aug  6 01:46:39 2006
+++ xoops2jp/html/modules/user/preload/Primary/Primary.class.php	Sat Sep  2 15:10:02 2006
@@ -54,6 +54,16 @@
 			}
 			else {
 				$xoopsUser->setGroups($_SESSION['xoopsUserGroups']);
+				
+				//
+				// Use 'mysession'
+				//
+				$root =& XCube_Root::getSingleton();
+				$xoopsConfig = $root->mController->getConfig();
+		
+				if ($xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] != '') {
+					setcookie($xoopsConfig['session_name'], session_id(), time() + (60 * $xoopsConfig['session_expire']), '/', '', 0);
+				}
 			}
 		}
 	}


xoops-cvslog メーリングリストの案内
Back to archive index