From: <bh...@us...> - 2006-06-30 22:08:58
|
Revision: 13910 Author: bharat Date: 2006-06-30 15:08:56 -0700 (Fri, 30 Jun 2006) ViewCVS: http://svn.sourceforge.net/gallery/?rev=13910&view=rev Log Message: ----------- Switch session handler back to 'files' if it was set to 'user' to provide an escape hatch in the case that gallery is installed in a subdir of some other app Modified Paths: -------------- trunk/gallery2/install/index.php trunk/gallery2/upgrade/index.php Modified: trunk/gallery2/install/index.php =================================================================== --- trunk/gallery2/install/index.php 2006-06-30 19:34:45 UTC (rev 13909) +++ trunk/gallery2/install/index.php 2006-06-30 22:08:56 UTC (rev 13910) @@ -103,7 +103,11 @@ } } -if (!@ini_get('session.save_handler')) { +if (@ini_get('session.save_handler') == 'user') { + /* + * Escape hatch to avoid conflicting with an application specific session handler, which can + * happen in the case where Gallery2 is installed in a subdir of some other app. + */ @ini_set('session.save_handler', 'files'); session_start(); } else if (!ini_get('session.auto_start')) { Modified: trunk/gallery2/upgrade/index.php =================================================================== --- trunk/gallery2/upgrade/index.php 2006-06-30 19:34:45 UTC (rev 13909) +++ trunk/gallery2/upgrade/index.php 2006-06-30 22:08:56 UTC (rev 13910) @@ -98,7 +98,11 @@ } } -if (!@ini_get('session.save_handler')) { +if (@ini_get('session.save_handler') == 'user') { + /* + * Escape hatch to avoid conflicting with an application specific session handler, which can + * happen in the case where Gallery2 is installed in a subdir of some other app. + */ @ini_set('session.save_handler', 'files'); session_start(); } else if (!ini_get('session.auto_start')) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |