Click to See Complete Forum and Search --> : UBB cookie and variable names (using them in PHP)


bugfix
09-05-2001, 08:27 AM
Does anyone know the name of the cookie and variables that UBB stores on computers?

I need to find out the cookie and variable name so that I can detect whether a particular user is registered on a particular bulletin board. I'm helping someone setup a web based chat program and I need to know whether people trying to use the webchat are registered with the UBB at the same site.

Did that make sense?

How do I extract information from the cookie? Is it available as a varible without doing anything?

e.g. If the UBB cookie name is UBBcookie and it stores more than 1 value then would I extract it like so?:
$username = $UBBcookie[lno_username]

Thanks.

[ 05 September 2001: Message edited by: bugfix ]

jemfinch
09-05-2001, 09:45 AM
You can't read cookies that don't originate from your site. Otherwise there would be serious security problems in that any webserver could steal your passwords from all your cookies and use them wherever it chose.

Jeremy

bugfix
09-05-2001, 10:05 AM
It would be origninating from the same site. Both UBB and the web-chat would be at alfaowner.com, they'd be in seperate directories but I don't see that being a problem.

nanode
09-05-2001, 12:29 PM
The basic idea is, if you write a cookie, you may read that same cookie.

I don't see the issue if you are the person writing the cookie in the first place.

bugfix
09-05-2001, 08:21 PM
I don't see the issue if you are the person writing the cookie in the first place.

Its not a problem if you know the damned name of the thing. :D What name does UBB assign to its cookie and what is the varible name for the username?