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
                    LoggerAwareTrait    
                
            Properties
| private Application | $app | ||
| private Repository | $config | ||
| private Request | $request | ||
| private IPService | $ipService | 
Methods
                    getLoggerChannel()
        
                                            
                
            No description
                    __construct(Application $app, Repository $config, Request $request, IPService $ipService, 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).
                    bool
                
                
                    shouldCompareIP()
        
                                            
                
            No description
                    bool
                
                
                    shouldCompareAgent()
        
                                            
                
            No description
                    setLogger(LoggerInterface $logger)
        
                                            
                
            Sets a logger instance on the object.
Details
        
                            
    getLoggerChannel()
        
    
    No description
        
                            
    __construct(Application $app, Repository $config, Request $request, IPService $ipService, 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
    shouldCompareAgent()
        
    
    No description
        
                            
    setLogger(LoggerInterface $logger)
        
    
    Sets a logger instance on the object.