Author: jablko
Date: Thu Oct 29 16:49:00 2009
New Revision: 3849
Log:
Fix session_cookie_path when installed at domain root, for 1.0.8
Modified:
trunk/lib/vendor/symfony/lib/storage/sfSessionStorage.class.php
Modified: trunk/lib/vendor/symfony/lib/storage/sfSessionStorage.class.php
==============================================================================
--- trunk/lib/vendor/symfony/lib/storage/sfSessionStorage.class.php Thu Oct
29 00:02:46 2009 (r3848)
+++ trunk/lib/vendor/symfony/lib/storage/sfSessionStorage.class.php Thu Oct
29 16:49:00 2009 (r3849)
@@ -52,6 +52,10 @@
if (!isset($options['session_cookie_path']))
{
$options['session_cookie_path'] =
sfContext::getInstance()->request->getRelativeUrlRoot();
+ if (1 > strlen($options['session_cookie_path']))
+ {
+ $options['session_cookie_path'] = '/';
+ }
}
$cookieDefaults = session_get_cookie_params();
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---