Topic: Cookies to Session and session to Cookies

Hi I have a login script in PHP that works pretty well, and i have made it so it takes the username and password from the database of punbb users and login this way.

One problem though is that i use session, and punbb uses cookies. Are there any one ther know how to or if it is possible to change punbb to also use sessions, or it is eaiser the other way around?

I can post the part of my login code that is neede if i need to.


Mads Jensen

Re: Cookies to Session and session to Cookies

well, you can just include common.php and punbb will handle the cookies and you can use the $pun_user array on your pages, then you can just copy the login script from punbb that way you don't need to worry about sessions/cookies