Jump to content
Larry Ullman's Book Forums

charles07

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by charles07

  1. yup,

     

    public function actionIndex()
    {
               Yii::app()->clientScript->registerScriptFile('scripts/myfile.js',CClientScript::POS_END);
               $this->render('index');
    }

    i just wanted to load this file in a single page, if i load it in layouts/main.php page file would be loaded in entire site.

     

     

    regards

    charles

    • Upvote 1
  2. 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

×
×
  • Create New...