Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Some Sessions Not Stored

$
0
0
Hi all!

Im having a issue i just found with my Authentication.
When the user logs in, i save a few sessions:

Yii::app()->session['id'] = $user->id;
Yii::app()->session['name'] = $user->name;
Yii::app()->session['email'] = $user->email;


And this works fine, the name displays at the top.
But when the browser is closed and reopend the loginstate remains true (Yii::app()->user->isGuest returns FALSE)
but the name and email is no longer stored.

Why is this? How can i slove that?

Thank you!

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>