Index: trunk/core/kernel/session/session.php =================================================================== diff -u -r2938 -r2960 --- trunk/core/kernel/session/session.php (.../session.php) (revision 2938) +++ trunk/core/kernel/session/session.php (.../session.php) (revision 2960) @@ -282,6 +282,8 @@ parent::Init($prefix,$special); $this->CheckIfCookiesAreOn(); + if ($this->CookiesEnabled) $_COOKIE['cookies_on'] = 1; + $this->Checkers = Array(); $this->InitStorage(); $this->Data =& new Params(); Index: trunk/globals.php =================================================================== diff -u -r2853 -r2960 --- trunk/globals.php (.../globals.php) (revision 2853) +++ trunk/globals.php (.../globals.php) (revision 2960) @@ -318,6 +318,12 @@ { global $indexURL, $rootURL, $secureURL; + if ( class_exists('kApplication') ) + { + $application =& kApplication::Instance(); + return $application->BaseURL().'index.php'; + } + switch($secure) { case 0: Index: trunk/kernel/include/modules.php =================================================================== diff -u -r2959 -r2960 --- trunk/kernel/include/modules.php (.../modules.php) (revision 2959) +++ trunk/kernel/include/modules.php (.../modules.php) (revision 2960) @@ -789,9 +789,10 @@ LogEntry("Finished Loading Module Parser scripts\n"); /*now each module gets a look at the environment string */ -$SessionQueryString = FALSE; +// SID detecting engine: begin -if(!isset($FrontEnd)) $FrontEnd = false; + $SessionQueryString = false; // by default assume, that SID is located in cookie + if( !isset($FrontEnd) ) $FrontEnd = false; // if frontend not explicitly defined, than if($FrontEnd != 1) $SessionQueryString = TRUE; @@ -864,6 +865,8 @@ $SessionQueryString = TRUE; } +// SID detecting engine: end + $objSession = new clsUserSession($var_list["sid"],($SessionQueryString && $FrontEnd==1)); if($UseSession)