i have a login form where is a check box remember me checkbox i want to have cookie based login if he/she checks the remember me check box … if they do not check it then cookie based login will not be done…
i have used this code for cookie based login (remember me checked)
Yii::app()->user->login($identity,0,true);
i have used this code for cookie based login should not happen (remember me unchecked)