Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Feb 2001
Posts: 26
MHB
Offline
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 26
Hi...

I got a UBB, which is in perl.
I got a website which is in php.
I got a cookie the ubb makes that I wanna exploit in php.
I got a big problem laugh

Does anyone have any idea how I could use the cookie set by UBB to get info from their profile?
I dont even know what name it is or how to call it frown

I think its called ubber then a few numbers...
Its value is like UserName&Pass&MemberNumber&1000

So, If I knew how to get the cookie to a var, I could use explode to get each into an array by using the ampersand as the explode char...?

Can ANYONE help?

Cheers smile

Sponsored Links
Joined: Mar 2000
Posts: 615
Member
Member
Offline
Joined: Mar 2000
Posts: 615
list($username,$password,$membernumber,$other) = explode('&', $HTTP_COOKIE_VARS['ubber']);

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
more specifically, ubber$vars_config{Cookie_Number}, or better yet, $cookie. wink

Joined: Feb 2001
Posts: 26
MHB
Offline
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 26
Hmmm....

It doesnt work, the variables are empty frown
I changed the ubber to ubber than the number in the config file and sill no luck, and $cookie doesnt work either frown

Any ideas?

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Experement with more inside ultimatebb. We might be using the wrong examples.

Sponsored Links
Joined: Feb 2001
Posts: 26
MHB
Offline
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 26
Still cant get it to work smirk

Maybe I could put in a piece of perl code where the cookie is created to create another cookie, that can be used by the whole site and its value be their member number?

Would that be possible? Would anyone of you know the code to do it?

[ June 19, 2001 02:25 AM: Message edited by: MHB ]

Joined: Feb 2001
Posts: 26
MHB
Offline
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 26
Actuallt nevermind, It seems my cookie number has a space in, and spaces turn into underscores, so I tried it with the underscore and it worked!

Thanks alot for your help smile

Joined: Jan 2001
Posts: 12
Junior Member
Junior Member
Offline
Joined: Jan 2001
Posts: 12
Hi.

I have a UBB board, and memebrs log in, making a cookie.

Now, I'm making a website in Macromedia UltraDev and I have a database for the users details and preferences on content.

I'd really like a login page that logs them into the site and also simultaneously logs then into UBB.

How do I do this?

PS. I'm familiar with HTML, but am NO wizard with this stuff, I'm just leaner. Please be simple.

Cheers.

Joined: Aug 2001
Posts: 155
Member
Member
Offline
Joined: Aug 2001
Posts: 155
I also am trying to do this, grabbing info from the ubb cookie and displaying and intergrating it in php on the rest of the site.

I'm new to php, been reading around trying to find out what to do, and besides whats been posted here I haven't found much (or understood) that could help me. So.. anyone wanna kinda guide me along here?

Thanx in advance.


I'm not really back. I went away again.
Joined: Aug 2001
Posts: 155
Member
Member
Offline
Joined: Aug 2001
Posts: 155
Anybody? Help? plz? lol


I'm not really back. I went away again.
Sponsored Links
Joined: Nov 2001
Posts: 10
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 10
I'm sort of in the same boat. Outside the UBB the site will be ASP and there will be some user functions there that will require being logged in. I would like some way to utilize the cookie that UBB writes.

Joined: Nov 2001
Posts: 10
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 10
Should I assume that because there are no responses that no one knows how to do this?

Joined: Aug 2001
Posts: 155
Member
Member
Offline
Joined: Aug 2001
Posts: 155
https://ubbdev.com/ubb/ultimatebb.php?ubb=get_topic;f=14;t=000566



I'm not really back. I went away again.

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)