PDA

View Full Version : sessionhash


tonytz
06-22-2011, 08:49 AM
i try to integrate an external program with vbulletin with an external php-based registration script using the following API:
https://www.vbulletin.com/forum/content.php/393-User-Registration-Process-Mobile-API

i will call the api.php using fopen along with the necessary GET and POST vars

based on the instruction at step 4, after completing the register_addmember procedure, you will get the sessionhash, how can you transfer this session to the user's browser (so user appears logged in)? is this even possible?

i am clueless so any help is highly appreciated, thanks!

kh99
06-22-2011, 10:27 AM
I'm not sure because I've never done anything like that, but it looks like the sessionhash value is normally in a cookie. IIRC you can't set a cookie for a different domain(?), but I think you can put the value on the url by adding &sessionhash=value.

tonytz
06-22-2011, 06:25 PM
thanks for the response.

i tried to append the sessionhash value to the site url to see if the session can be saved through the browser and log the user in, it doesn't work...