Avoid to create an empty SSO session (#1783)
This commit is contained in:
parent
23d2e527b1
commit
4521705013
|
@ -74,13 +74,16 @@ sub init {
|
|||
|
||||
sub display {
|
||||
my ( $self, $req ) = @_;
|
||||
my $realSessionId =
|
||||
$req->userData->{"$self->{conf}->{contextSwitchingPrefix}_session_id"};
|
||||
my $realSession;
|
||||
unless ( $realSession = $self->p->getApacheSession($realSessionId) ) {
|
||||
$self->userLogger->info(
|
||||
"ContextSwitching: session $realSessionId expired");
|
||||
return $self->p->do( $req, [ sub { PE_SESSIONEXPIRED } ] );
|
||||
my ( $realSession, $realSessionId );
|
||||
if ( $realSessionId =
|
||||
$req->userData->{"$self->{conf}->{contextSwitchingPrefix}_session_id"} )
|
||||
{
|
||||
|
||||
unless ( $realSession = $self->p->getApacheSession($realSessionId) ) {
|
||||
$self->userLogger->info(
|
||||
"ContextSwitching: session $realSessionId expired");
|
||||
return $self->p->do( $req, [ sub { PE_SESSIONEXPIRED } ] );
|
||||
}
|
||||
}
|
||||
|
||||
# Check access rules
|
||||
|
|
Loading…
Reference in New Issue
Block a user