- Developer documentation
- Common codes
- Universal codes
- PHP functions
- Session management functions
- session_resetlinks
session_resetlinks
Declaration
session_resetlinks():
Source: /includes/common/session.php
The function resets the session-stored links depending on whether the call originates from a public or an administrative surface. If called from the public surface, it clears and resets the `ocms_public_links` session variable; otherwise, it does the same with `ocms_admin_links`. The key logic is determined by the `$sys['CALL_FROM_PUBLIC_SURFACE']` flag, which controls which set of links gets reset.






