Log in

View Full Version : Calling all PunBB experts..



InNeedofHelp
05-29-2009, 03:12 AM
Here's an odd question for you... my friend and I are trying to manually set a cookie in PHP that a PunBB forum would set if you logged in and checked "Stay Logged In" so that we can kind of trick our PunBB forum into thinking we logged in.

Example: (trying to make this clear) Lets say we have a page called makecookies.php. We want it so that we can go to makecookies.php, some random page taht's not related to the punBB forum, and it'll set a cookie on our computers that PunBB will recognize as though we had logged in sometime previous and checked the Stay Logged In button.

So... any ideas how to do this? We've looked through pages of code in the punBB files, and it's just...way above our heads. Setting cookies isn't the problem though... it's identifying the variables that the cookie needs to be set with for PunBB to recognize it. That's why I turn to you PunBB experts. Any help is greatly appreciated :).

Nile
05-30-2009, 12:35 AM
You can use FireFox and download the web devolpers toolbar which will allow you to add your own cookies on domain names that aren't yours. But any good forums will require something in the cookie encrypted, maybe the password, the user, or the date (to check against the database). I don't think its possible, sorry.

traq
05-30-2009, 04:39 AM
out of curiosity, why would you want to? or do I want to know...:confused:

why don't you just register on the site and check "Stay Logged In"?