Yii Framework Forum: Session Expire - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Session Expire redirect page to login when session expires Rate Topic: -----

#1 User is offline   Alankar Singh 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 35
  • Joined: 22-March 12

Posted 28 February 2013 - 12:24 AM

Hi,
i developed a admin panel in yii and that is working fine but when session expired it will not redirect to login page,
Please any one can tell me how i will achieve that in yii properly.

Thanks
0

#2 User is offline   Jorgee 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 52
  • Joined: 22-March 13

Posted 30 April 2013 - 10:41 AM

You must use rules() method with accessControl() then DENY access to ANONYMOUS (?) or all users (*) and grant to role admin. That way if your user is anonymous it will be redirected to login, else he will see 403 Forbidden.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users