Revision 841

Date:
2022/05/04 14:42:23
Author:
ahitrov
Revision Log:
Secure cookie on-off

Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/plugins/session/lib/session/Keeper.pm

     
    207 207 -expires=> $state->{session}->expires,
    208 208 -value => $sid,
    209 209 -path => '/',
    210 -secure => 1,
    210 -secure => $state->{session}->secure,
    211 211 );
    212 212 $cookie->bake();
    213 213
  • utf8/plugins/session/lib/session/State.pm.proto

     
    29 29 $self->{domain} = '@SESSION_DOMAIN@';
    30 30 $self->{cookie} = '@SESSION_COOKIE_NAME@' || 'lsid';
    31 31 $self->{expires} = '@SESSION_EXPIRES@' || '';
    32 $self->{secure} = (lc('@SESSION_COOKIE_SECURE@') eq 'yes' ? 1 : 0);
    32 33
    33 34 $self->{lifetime} = '@SESSION_LIFETIME@';
    34 35 $self->{lifetime} *= 3600;
     
    113 114 session_directory
    114 115 domain
    115 116 cookie
    117 secure
    116 118 expires
    117 119 storage
    118 120 lifetime