init_session_handler

Declaration

init_session_handler(): void
Source: /includes/common/session.php
This function initializes the session handling: it starts the PHP session (if not already started), manages login and logout flows for both administrators and public visitors, and synchronizes session variables (user data, language settings, navigation history, cookies). Special logic includes automatic re-login based on 'stay logged in' cookies, per-module event handler calls on logout, and mirroring all relevant session data into the global `$sys` array.

Return values

void

See also