Get system COOKIE variable function
Syntax:
getcvar($var,$ecms)Description:
$var: is the variable name
$ecms: 0 is to set the foreground COOKIE variable, 1 is to set the background COOKIE variable. This parameter can be omitted and defaults to 0.
Usage example:
getcvar('mlusername'), get the username of the member who logged in at the front desk
getcvar('loginusername',1), get the user name of the background login administrator
Additional notes:
This get COOKIE function is to get the variable whose name is prefixed with COOKIE. You can also directly use PHP's own $_COOKIE['variable name'] to get it.