AuthorNot set
VersionNot set
LinkNot set


Displaying 1-10 of 13 results.
loginUrlarray ( '/user/auth/login', )  
allowAutoLoginfalseWhether to enable cookie-based login. Defaults to false.boolean
guestName'Guest'The name for a guest user. Defaults to 'Guest'. This is used by {@link getName} when the current user is a guest (not authenticated).string
identityCookienullThe 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.array
authTimeoutnullTimeout 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.7integer
autoRenewCookiefalseWhether 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.0boolean
autoUpdateFlashtrueWhether 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.7boolean
loginRequiredAjaxResponsenullValue 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 loginRequiredstring
behaviorsarray()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.array
idnullThe unique identifier for the user. If null, it means the user is a guest.mixed
Free Web Hosting