[Library | Trunk]: Session methods change condition if user is undefined not not equal to null, to avoid error on server
[Library | Trunk]: Session methods change condition if user is undefined not not equal to null, to avoid error on server