// Set User Cookie
public static function setUserCookie($userID, $salt, $algo, $remember = false, $userCookie = true) {
global $_COOKIE;
$cookiePath = COOKIE_PATH; $cookieName = COOKIE_USER;
if ($remember) {
$cookieExpiration = time() + 1209600; // 14 days
} else {
$cookieExpiration = time() + 172800; // 48 hours
}
if (!$userCookie) {
$cookiePath = COOKIE_PATH."administration/";
$cookieName = COOKIE_ADMIN;
$cookieExpiration = time() + 3600; // 1 hour
if ($remember) {
$cookieExpiration = time() + 60*60*24*365; // one year if u want)
} else {
$cookieExpiration = time() + 172800; // 48 hours
}
Category Forum
Suspected Bugs and Errors - 8Labels
None yet
Statistics
5 participants
Notifications
You are not receiving notifications from this thread.
Related Questions