Skip to content

Commit aa82e89

Browse files
SniperSisterQuyTon
andauthored
[5.x] Fix secure flag for session cookies (joomla#43882)
* Fix setting secure cookie flag for https-encorced sites * apply for all sessions --------- Co-authored-by: Quy <[email protected]>
1 parent 6ea99e6 commit aa82e89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/src/Service/Provider/Session.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function (Container $container) {
8686
$options['cookie_path'] = $config->get('cookie_path', '/');
8787

8888
return new \Joomla\CMS\Session\Session(
89-
new JoomlaStorage($input, $handler),
89+
new JoomlaStorage($input, $handler, $options),
9090
$container->get(DispatcherInterface::class),
9191
$options
9292
);
@@ -133,7 +133,7 @@ function (Container $container) {
133133
$options['cookie_path'] = $config->get('cookie_path', '/');
134134

135135
return new \Joomla\CMS\Session\Session(
136-
new JoomlaStorage($input, $handler),
136+
new JoomlaStorage($input, $handler, $options),
137137
$container->get(DispatcherInterface::class),
138138
$options
139139
);
@@ -174,7 +174,7 @@ function (Container $container) {
174174
$options['cookie_path'] = $config->get('cookie_path', '/');
175175

176176
return new \Joomla\CMS\Session\Session(
177-
new JoomlaStorage($input, $handler),
177+
new JoomlaStorage($input, $handler, $options),
178178
$container->get(DispatcherInterface::class),
179179
$options
180180
);

0 commit comments

Comments
 (0)