| 
      
            Lines 1115-1120
          sub checkauth {
      
      
        Link Here
      
     | 
  
        
          | 1115 | 
                  INPUTS               => \@inputs,  | 
          1115 | 
                  INPUTS               => \@inputs,  | 
        
        
          | 1116 | 
                  casAuthentication    => C4::Context->preference("casAuthentication"), | 
          1116 | 
                  casAuthentication    => C4::Context->preference("casAuthentication"), | 
        
        
          | 1117 | 
                  shibbolethAuthentication => $shib,  | 
          1117 | 
                  shibbolethAuthentication => $shib,  | 
        
            
               | 
               | 
              1118 | 
                      SessionRestrictionByIP     => C4::Context->preference("SessionRestrictionByIP"), | 
            
        
          | 1118 | 
                  suggestion           => C4::Context->preference("suggestion"), | 
          1119 | 
                  suggestion           => C4::Context->preference("suggestion"), | 
        
        
          | 1119 | 
                  virtualshelves       => C4::Context->preference("virtualshelves"), | 
          1120 | 
                  virtualshelves       => C4::Context->preference("virtualshelves"), | 
        
        
          | 1120 | 
                  LibraryName          => "" . C4::Context->preference("LibraryName"), | 
          1121 | 
                  LibraryName          => "" . C4::Context->preference("LibraryName"), | 
        
  
    | 
      
            Lines 1301-1307
          sub check_api_auth {
      
      
        Link Here
      
     | 
  
        
          | 1301 | 
                          $userid    = undef;  | 
          1302 | 
                          $userid    = undef;  | 
        
        
          | 1302 | 
                          $sessionID = undef;  | 
          1303 | 
                          $sessionID = undef;  | 
        
        
          | 1303 | 
                          return ("expired", undef, undef); | 
          1304 | 
                          return ("expired", undef, undef); | 
        
          
            
              | 1304 | 
                          } elsif ( $ip ne $ENV{'REMOTE_ADDR'} ) { | 
              1305 | 
                          } elsif ( C4::Context->preference('SessionRestrictionByIP') && $ip ne $ENV{'REMOTE_ADDR'} ) { | 
            
        
          | 1305 | 
                          # IP address changed  | 
          1306 | 
                          # IP address changed  | 
        
        
          | 1306 | 
                          $session->delete();  | 
          1307 | 
                          $session->delete();  | 
        
        
          | 1307 | 
                          $session->flush;  | 
          1308 | 
                          $session->flush;  | 
        
  
    | 
      
            Lines 1543-1549
          sub check_cookie_auth {
      
      
        Link Here
      
     | 
  
        
          | 1543 | 
                      $userid    = undef;  | 
          1544 | 
                      $userid    = undef;  | 
        
        
          | 1544 | 
                      $sessionID = undef;  | 
          1545 | 
                      $sessionID = undef;  | 
        
        
          | 1545 | 
                      return ("expired", undef); | 
          1546 | 
                      return ("expired", undef); | 
        
          
            
              | 1546 | 
                      } elsif ( $ip ne $ENV{'REMOTE_ADDR'} ) { | 
              1547 | 
                      } elsif ( C4::Context->preference('SessionRestrictionByIP') && $ip ne $ENV{'REMOTE_ADDR'} ) { | 
            
        
          | 1547 | 
                      # IP address changed  | 
          1548 | 
                      # IP address changed  | 
        
        
          | 1548 | 
                      $session->delete();  | 
          1549 | 
                      $session->delete();  | 
        
        
          | 1549 | 
                      $session->flush;  | 
          1550 | 
                      $session->flush;  |