Topic: Punbb Cookie Modification

Hi,

Can i set cookie of punbb  which expires after user .. closes the Internet Explorer Window .. ??

2

Re: Punbb Cookie Modification

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

3 (edited by דימה 2005-10-25 15:26)

Re: Punbb Cookie Modification

Hello,
How can I set cookie in order to PunBB will recognize me from specific URL Forwarding/Sub Domain?

Re: Punbb Cookie Modification

i tried above suggestion and code. .
but its not working ..

what to do ?

Re: Punbb Cookie Modification

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);

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Punbb Cookie Modification

rickard... thanks for quick reply ..

and thanks .. again .. it worked ..

big_smile