From c6abc59438d05e50115bd29388cd4521b51c9c1f Mon Sep 17 00:00:00 2001 From: David Date: Thu, 4 Sep 2014 19:45:25 +0200 Subject: Fix #531 Since PHP 5.3.3 the default value for session.use_only_cookies is 1, so we need to set that to 0 when CookieMode is "None" --- framework/Web/THttpSession.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'framework') diff --git a/framework/Web/THttpSession.php b/framework/Web/THttpSession.php index 79c6e6df..b96a977e 100644 --- a/framework/Web/THttpSession.php +++ b/framework/Web/THttpSession.php @@ -297,8 +297,11 @@ class THttpSession extends TApplicationComponent implements IteratorAggregate,Ar else { $value=TPropertyValue::ensureEnum($value,'THttpSessionCookieMode'); - if($value===THttpSessionCookieMode::None) + if($value===THttpSessionCookieMode::None) + { ini_set('session.use_cookies','0'); + ini_set('session.use_only_cookies','0'); + } else if($value===THttpSessionCookieMode::Allow) { ini_set('session.use_cookies','1'); -- cgit v1.2.3