Interface: SessionFacts
Defined in: core/session.ts:14
What a Moodle page says about its session, read without depending on the interface's language.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
hasLoginLink | boolean | A login link: a guest (who also has a user id) gets one and no logout link. | core/session.ts:22 |
hasLogoutLink | boolean | A logout link, in the user menu of a real user's pages. | core/session.ts:20 |
notLoggedIn | boolean | Moodle adds the notloggedin body class when nobody is logged in. | core/session.ts:16 |
userId | number | null | M.cfg.userId: 0 when logged out; null on a page that isn't Moodle's (an SSO provider's). | core/session.ts:18 |