SessionValidator
class SessionValidator implements SessionValidatorInterface, LoggerAwareInterface (View source)
Class SessionValidator Base concrete5 session validator, validates the IP and the agent across requests.
\@package Concrete\Core\Session
Traits
Trait LoggerAwareTrait A trait used with LoggerAwareInterface
Constants
| CONFIGKEY_IP_MISMATCH | 
                     
  | 
            
| CONFIGKEY_IP_MISMATCH_ALLOWLIST | 
                     
  | 
            
| CONFIGKEY_ENABLE_USERSPECIFIC_IP_MISMATCH_ALLOWLIST | 
                     
  | 
            
| CONFIGKEY_USERAGENT_MISMATCH | 
                     
  | 
            
| CONFIGKEY_SESSION_INVALIDATE | 
                     
  | 
            
| CONFIGKEY_INVALIDATE_INACTIVE_USERS | 
                     
  | 
            
| CONFIGKEY_INVALIDATE_INACTIVE_USERS_TIME | 
                     
  | 
            
Properties
| private Application | $app | ||
| private Repository | $config | ||
| private Request | $request | 
Methods
No description
No description
No description
No description
No description
Check if there is an active session.
Get the current session (if it exists).
No description
No description
No description
Sets a logger instance on the object.
Details
        
                            
    getLoggerChannel()
        
    
    No description
        
                            
    __construct(Application $app, Repository $config, Request $request, LoggerInterface $logger = null)
        
    
    No description
        
                            
    handleSessionValidation(Session $session)
        
    
    No description
        
                            bool
    shouldValidateUserActivity(Session $session)
        
    
    No description
        
                            int
    getUserActivityThreshold()
        
    
    No description
        
                            bool
    hasActiveSession()
        
    
    Check if there is an active session.
        
                            Session|null
    getActiveSession(bool $start = false)
        
    
    Get the current session (if it exists).
        
                        private    bool
    shouldCompareIP()
        
    
    No description
        
                        private    bool
    considerIPChanged(AddressInterface $currentIP, AddressInterface|null $previousIP)
        
    
    No description
        
                        private    bool
    shouldCompareAgent()
        
    
    No description
        
                            
    setLogger(LoggerInterface $logger)
        
    
    Sets a logger instance on the object.