Jump to content
Larry Ullman's Book Forums

Yii Delete Browser Cookie


charles07
 Share

Recommended Posts

hi

am trying to delete the browser cookie PHPSESSID on logout using the following code

 

unset(Yii::app()->request->cookies['PHPSESSID']);

Yii::app()->request->cookies->clear();

 

but the cookie stays there even after this, is there any other way to clear these cookies?

 

regards

charles

Link to comment
Share on other sites

 Share

×
×
  • Create New...