Topic: Punbb Cookie Modification
Hi,
Can i set cookie of punbb which expires after user .. closes the Internet Explorer Window .. ??
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → Punbb Cookie Modification
Hi,
Can i set cookie of punbb which expires after user .. closes the Internet Explorer Window .. ??
in functions.php on line 33 replace:
$expire = $now + 31536000; // The cookie expires after a year
with
$expire = 0; // The cookie expires at the end of the session (when the browser closes)
should work
Hello,
How can I set cookie in order to PunBB will recognize me from specific URL Forwarding/Sub Domain?
i tried above suggestion and code. .
but its not working ..
what to do ?
The instructions were wrong. Search for:
setcookie($cookie_name, serialize(array($user_id, md5($cookie_seed.$password_hash))), $expire, $cookie_path, $cookie_domain, $cookie_secure);
and replace it with:
setcookie($cookie_name, serialize(array($user_id, md5($cookie_seed.$password_hash))), 0, $cookie_path, $cookie_domain, $cookie_secure);
rickard... thanks for quick reply ..
and thanks .. again .. it worked ..
PunBB Forums → PunBB 1.2 troubleshooting → Punbb Cookie Modification
Powered by PunBB, supported by Informer Technologies, Inc.