In the Yii application i am creating i have a search functionality. In this any user(authenticated and guest) can see the searchbox. but when i click the search button only logged in user can see the result. else it will be redirected to login screen . once they login they can see the result.
So I have written accessrule like this
return array(
array('allow',
'actions'=>array('search'),
'users'=>array('@')
),
My doubt is when it is coming to the search action there are 2 parameters(POST)(my search keywords). when it goes to loginurl and come back after my successful login to same action How can i get these keywords back ? Is there any direct yii method other than to use session ?
Please help