Topic: End session when browser is closed

How do I configure/hack Punbb 1.4 to automatically log users out (by ending the session) when they close their browser window? I've tried adjusting some of the expire settings in the code and they remain logged in even after all browser windows have closed.

Thanks.

Re: End session when browser is closed

To add some additional information: when I change some of the coding in the functions.php file like I successfully did a few years ago on Punbb 1.2, it displays a number of 'header already sent' errors at the top of every page. It seems like anytime a change is made to that file, it causes the 'header already sent' problem.

Re: End session when browser is closed

What kind of change?

Maybe your editor save file as utf-8 with BOM tag.

Re: End session when browser is closed

Thanks! It turns out it was an issue with the way my editor was saving the file. Once I loaded the file up in Dreamweaver instead, I was able to successfully edit it. The sessions now end when the browser is closed, as I expected.

Re: End session when browser is closed

@clariden

Would you mind sharing the code solution you are now using?