From: <be...@us...> - 2012-04-15 03:01:46
|
Revision: 9329 http://xoops.svn.sourceforge.net/xoops/?rev=9329&view=rev Author: beckmi Date: 2012-04-15 03:01:40 +0000 (Sun, 15 Apr 2012) Log Message: ----------- ID: 3513787 wrong cookie_domain (arion92fr) Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/include/common.php Modified: XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt 2012-04-15 02:48:11 UTC (rev 9328) +++ XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt 2012-04-15 03:01:40 UTC (rev 9329) @@ -6,6 +6,7 @@ Bugfixes: - preventing division by zero in pagenav.php (timgno) - ID: 3466534 tooltip "$ not defined" fix (culex) + - ID: 3513787 wrong cookie_domain (arion92fr) Updated: - phpThumb to 1.7.11 (mamba) Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/include/common.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/include/common.php 2012-04-15 02:48:11 UTC (rev 9328) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/include/common.php 2012-04-15 03:01:40 UTC (rev 9329) @@ -93,7 +93,9 @@ * Set cookie dope for multiple subdomains remove the '.'. to use top level dope for session cookie; * Requires functions */ -define('XOOPS_COOKIE_DOMAIN', ($domain = xoops_getBaseDomain(XOOPS_URL)) == 'localhost' ? '' : '.' . $domain); +//define('XOOPS_COOKIE_DOMAIN', ($domain = xoops_getBaseDomain(XOOPS_URL)) == 'localhost' ? '' : '.' . $domain); +//When you don't use Localhost but your "computer name" as domain you can't use session cookies +define('XOOPS_COOKIE_DOMAIN', (strpos($domain = xoops_getBaseDomain(XOOPS_URL),'.')) === FALSE ? '' : '.' . $domain); //by arion92fr /** * Check Proxy; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |