Product SiteDocumentation Site

5.25. Cookies

$g_cookie_path
Specifies the path under which a cookie is visible.
All scripts in this directory and its sub-directories will be able to access MantisBT cookies.
Default value is '/'. It is recommended to set this to the actual MantisBT path.
$g_cookie_domain
The domain that the MantisBT cookies are available to.
$g_cookie_samesite
Specifies the SameSite attribute to use for the MantisBT cookies.
Valid values are Strict, Lax (default) or None.
If this setting is changed, users with a non-expired Session cookie (see $g_string_cookie below) may need to log out and log back in, to switch the cookie's secure attribute to the new value.

Note

While Strict provides stronger protection against CSRF attacks, it actually prevents the user's session from being recognized when clicking a link from a notification e-mail, causing MantisBT to start an anonymous session even if the user is already logged in.
$g_cookie_prefix
Prefix for all MantisBT cookies
This must be an identifier which does not include spaces or periods, and should be unique per MantisBT installation, especially if $g_cookie_path is not restricting the cookies' scope to the actual MantisBT directory.
It applies to the cookies listed below. Their actual names are calculated by prepending the prefix, and it is not expected for the user to need to change these.
  • $g_bug_list_cookie
  • $g_collapse_settings_cookie
    Stores the open/closed state of the collapsible sections.
  • $g_logout_cookie
  • $g_manage_config_cookie
    Stores the filter criteria for the Manage Config Report page.
  • $g_manage_users_cookie
    Stores the filter criteria for the Manage Users page.
  • $g_project_cookie
  • $g_string_cookie
  • $g_view_all_cookie
$g_string_cookie
TODO
$g_project_cookie
TODO
$g_view_all_cookie
TODO
$g_collapse_settings_cookie
Collapse settings cookie. Stores the open/closed state of the collapsible sections.
$g_manage_users_cookie
Stores the filter criteria for the Manage User page
$g_manage_config_cookie
Stores the filter criteria for the Manage Config Report page
$g_logout_cookie
TODO
$g_bug_list_cookie
TODO