Get CDA working in http with "double cookie for single session" (Lemonldap-680)
This commit is contained in:
parent
23627081c8
commit
45ef54dccc
|
@ -2456,6 +2456,11 @@ sub store {
|
||||||
# Main session
|
# Main session
|
||||||
my $h = $self->getApacheSession( $self->{id} )
|
my $h = $self->getApacheSession( $self->{id} )
|
||||||
or return PE_APACHESESSIONERROR;
|
or return PE_APACHESESSIONERROR;
|
||||||
|
# Compute unsecure cookie value if needed
|
||||||
|
if ( $self->{securedCookie} == 3 ) {
|
||||||
|
$self->{sessionInfo}->{_httpSession} =
|
||||||
|
$self->{cipher}->encryptHex( $self->{id}, "http" );
|
||||||
|
}
|
||||||
foreach my $k ( keys %{ $self->{sessionInfo} } ) {
|
foreach my $k ( keys %{ $self->{sessionInfo} } ) {
|
||||||
next unless defined $self->{sessionInfo}->{$k};
|
next unless defined $self->{sessionInfo}->{$k};
|
||||||
my $displayValue = $self->{sessionInfo}->{$k};
|
my $displayValue = $self->{sessionInfo}->{$k};
|
||||||
|
@ -2508,11 +2513,7 @@ sub buildCookie {
|
||||||
push @{ $self->{cookie} },
|
push @{ $self->{cookie} },
|
||||||
$self->cookie(
|
$self->cookie(
|
||||||
-name => $self->{cookieName} . "http",
|
-name => $self->{cookieName} . "http",
|
||||||
-value => (
|
-value => $self->{sessionInfo}->{_httpSession},
|
||||||
$self->{securedCookie} == 2
|
|
||||||
? $self->{sessionInfo}->{_httpSession}
|
|
||||||
: $self->{cipher}->encryptHex( $self->{id}, "http" )
|
|
||||||
),
|
|
||||||
-domain => $self->{domain},
|
-domain => $self->{domain},
|
||||||
-path => "/",
|
-path => "/",
|
||||||
-secure => 0,
|
-secure => 0,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user