Session Problem


i’m developing this yii and node app.

The node files and html,js filesare outside yii protected folder.

When user autenticates,i do



So far , so good. problem comes when after

if($model->validate() && $model->login())


use go to localhost/counter that is outside of yii protected folder, and the session[‘user’] saved before, disapear .

$_SESSION[‘user’][‘username’] , return undefined.

why session values disapear?


Are you starting a new session in $model->login()? That would wipe your session data.