The InvSession object is instantiated early on in any dotAdmin request. It can be accessed from any controller as $this->obj_session
This carries information about the user, session properties, and any login information associated with a logged in user.
InvSession is scoped to Controllers, public website document, and templates or views as $this->obj_session. However, you may need to access it from other objects which do not have it pre-scoped.
The normal way to access InvSession would be to fetch its singleton object using InvSession::getInstance()
Fetch session value of variable $name. Will be returned as a plain text string. If value is not set or does not exist, will return null.
Is this an admin user with privileges to use the dotAdmin CMS?
Is the user logged in or not?
I the user permitted to access the node $node?
Set a value in the session to be retrieved in later page requests.
Unset the value $name in the current session.
Address: 22a Fishergate York, YO10 4AB · Tel: 01904 636677 · Email: email@example.com