Topic: $cookie_name = punbb_cookie_rk

Hello.

I'm trying to integrate punbb to my web site. I'm trying to use the login of the forum as the main login of the site.

By searching the forum and the doc, I found that if I load the file include\common.php, it would do the work and I could access the "$pun_user" variable, and see the details about the client.

Great, encounter some minor bugs  that I resolved. Did not change any of the punbb code.  But now, by doing "phpinfo()", I can see the cookie returned is "punbb_cookie_rk". I find out in the code that if php version is higher than 5.2, it adds the suffix _pk. Fine for me.

What I don't understand, is that when the user connects to the web site, the function "check_cookie" only looks for "punbb_cookie", which doesn't exist because it add a cookie of another name.

Did I miss something real bad, or is that a bug? Or am I right on the way should integrate punbb login in my site?

I've tried searching on the forum, but came with no valid results.

Any idea?

thank you for you help.

Re: $cookie_name = punbb_cookie_rk

None of the PunBB code adds a suffix...