session_addlink

Declaration

session_addlink(): void
Source: /includes/common/session.php
The function saves the current page's link (URL and parameters) into the session, handling public and admin surfaces separately. The new link is always placed at the beginning of the list, while previous links are retained up to a configurable depth, filtering out any entries with the same script name. The output is a serialized link history used for navigation purposes, such as breadcrumb or back-navigation functionality.

Return values

void

See also