Skip to main content

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​

PropertyTypeDescriptionDefined in
hasLoginLinkbooleanA login link: a guest (who also has a user id) gets one and no logout link.core/session.ts:22
hasLogoutLinkbooleanA logout link, in the user menu of a real user's pages.core/session.ts:20
notLoggedInbooleanMoodle adds the notloggedin body class when nobody is logged in.core/session.ts:16
userIdnumber | nullM.cfg.userId: 0 when logged out; null on a page that isn't Moodle's (an SSO provider's).core/session.ts:18