CWebUser

Whether to enable cookie-based login. Defaults to false.
* default (boolean) :
false
The name for a guest user. Defaults to 'Guest'. This is used by {@link getName} when the current user is a guest (not authenticated).
default (string) :
'Guest'
The URL for login. If using array, the first element should be the route to the login action, and the rest name-value pairs are GET parameters to construct the login URL (e.g. array('/site/login')). If this property is null, a 403 HTTP exception will be raised instead. @see CController::createUrl
default (string|array) :
array
(
    '/site/login',
)
The property values (in name-value pairs) used to initialize the identity cookie. Any property of {@link CHttpCookie} may be initialized. This property is effective only when {@link allowAutoLogin} is true.
default (array) :
null
Timeout in seconds after which user is logged out if inactive. If this property is not set, the user will be logged out after the current session expires (c.f. {@link CHttpSession::timeout}). @since 1.1.7
default (integer) :
null
Whether to automatically renew the identity cookie each time a page is requested. Defaults to false. This property is effective only when {@link allowAutoLogin} is true. When this is false, the identity cookie will expire after the specified duration since the user is initially logged in. When this is true, the identity cookie will expire after the specified duration since the user visits the site the last time. @see allowAutoLogin @since 1.1.0
default (boolean) :
false
Whether to automatically update the validity of flash messages. Defaults to true, meaning flash messages will be valid only in the current and the next requests. If this is set false, you will be responsible for ensuring a flash message is deleted after usage. (This can be achieved by calling {@link getFlash} with the 3rd parameter being true). @since 1.1.7
default (boolean) :
true
Value that will be echoed in case that user session has expired during an ajax call. When a request is made and user session has expired, {@link loginRequired} redirects to {@link loginUrl} for login. If that happens during an ajax call, the complete HTML login page is returned as the result of that ajax call. That could be a problem if the ajax call expects the result to be a json array or a predefined string, as the login page is ignored in that case. To solve this, set this property to the desired return value. If this property is set, this value will be returned as the result of the ajax call in case that the user session has expired. @since 1.1.9 @see loginRequired
default (string) :
null
The behaviors that should be attached to this component. The behaviors will be attached to the component when {@link init} is called. Please refer to {@link CModel::behaviors} on how to specify the value of this property.
default (array) :
array()
The unique identifier for the user. If null, it means the user is a guest.
default (mixed) :
null
Sets the unique identifier for the user (e.g. username). the user name. @see getName
default (string) :
null
The URL that the user should be redirected to after login.
default (string) :
null
A prefix for the name of the session variables storing user session data.
default (string) :
null
Free Web Hosting