Class NUserStorage
	
	
Session storage for user object.
	 
	
		- 
			NObject
			
			
			
		
 
		- 
			
NUserStorage			
			 implements 
				IUserStorage
			
			
		 
	
	
	
	Methods summary
	
		
			 public 
			
			
			
		 | 
		 | 
	
	
		
			 public 
			NUserStorage
			
			
		 | 
		
		#
		setAuthenticated( boolean $state )
		
			
Sets the authenticated status of this user. 
		 
		
			
Sets the authenticated status of this user. 
				Parameters
				
				Returns
				
				Implementation of
				
		 
		  | 
	
	
		
			 public 
			boolean
			
			
		 | 
		
		#
		isAuthenticated( )
		
			
Is this user authenticated? 
		 
		
			
Is this user authenticated? 
				Returns
				
					boolean 
				 
				Implementation of
				
		 
		  | 
	
	
		
			 public 
			NUserStorage
			
			
		 | 
		 | 
	
	
		
			 public 
			IIdentity|null
			
			
		 | 
		
		#
		getIdentity( )
		
			
Returns current user identity, if any. 
		 
		
			
Returns current user identity, if any. 
				Returns
				
				Implementation of
				
		 
		  | 
	
	
		
			 public 
			NUserStorage
			
			
		 | 
		
		#
		setNamespace( string $namespace )
		
			
Changes namespace; allows more users to share a session. 
		 
		
			
Changes namespace; allows more users to share a session. 
				Parameters
				
				Returns
				
		 
		  | 
	
	
		
			 public 
			string
			
			
		 | 
		
		#
		getNamespace( )
		
			
Returns current namespace. 
		 
		
			
Returns current namespace. 
				Returns
				
					string 
				 
		 
		  | 
	
	
		
			 public 
			NUserStorage
			
			
		 | 
		
		#
		setExpiration( string|integer|DateTime $time, integer $flags = 0 )
		
			
Enables log out after inactivity. 
		 
		
			
Enables log out after inactivity. 
				Parameters
				
					- $time
 
					string|integer|DateTime Number of seconds or timestamp 
					- $flags
 
					integer Log out when the browser is closed | Clear the identity from persistent storage? 
				  
				Returns
				
				Implementation of
				
		 
		  | 
	
	
		
			 public 
			integer
			
			
		 | 
		 | 
	
	
		
			 protected 
			NSessionSection
			
			
		 | 
		
		#
		getSessionSection(  $need )
		
			
Returns and initializes $this->sessionSection. 
		 
		
			
Returns and initializes $this->sessionSection. 
				Returns
				
		 
		  |