Index: trunk/kernel/include/modules.php =================================================================== diff -u -r2958 -r2959 --- trunk/kernel/include/modules.php (.../modules.php) (revision 2958) +++ trunk/kernel/include/modules.php (.../modules.php) (revision 2959) @@ -845,8 +845,15 @@ set_cookie('login', '', time() - 3600); set_cookie('sid', '', time() - 3600); } -echo 'INP_URL_SID: ['.$var_list['sid'].']
'; + $CookieTest = isset($_COOKIE['cookies_on']) ? $_COOKIE['cookies_on'] : ''; + +if($var_list['sid'] && !$CookieTest) // when going from http -> https and via versa assume, that cookies are allowed +{ + $CookieTest = true; + $_COOKIE['cookies_on'] = 1; +} + $HTTP_REFERER = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''; if ( ($CookieTest == 1) /*|| !strstr($HTTP_REFERER, $_SERVER['HTTP_HOST'].$objConfig->Get("Site_Path"))*/) {