Skip to content

[WIP] [Security] Session concurrency control #12009

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 16 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Set the max_sessions config option as integer.
  • Loading branch information
ajgarlag committed Nov 10, 2014
commit 6224ba0c2d1a3fdfe1ecf9be6987ad5c832a50fb
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ private function addFirewallsSection(ArrayNodeDefinition $rootNode, array $facto
->arrayNode('session_concurrency')
->canBeUnset()
->children()
->scalarNode('max_sessions')->defaultNull()->end()
->integerNode('max_sessions')->defaultValue(0)->min(0)->end()
->booleanNode('error_if_maximum_exceeded')->defaultTrue()->end()
->scalarNode('expiration_url')->defaultValue('/')->end()
->end()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ private function createConcurrentSessionAuthenticationStrategy($container, $id,
{
$sessionStrategyId = 'security.authentication.session_strategy.'.$id;

if (isset($config['max_sessions'])) {
if (isset($config['max_sessions']) && $config['max_sessions'] > 0) {
$concurrentSessionControlStrategyId = 'security.authentication.session_strategy.concurrent_control.'.$id;
$container->setDefinition(
$concurrentSessionControlStrategyId,
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy