vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=322123

Login to vB From External PHP Page on Different Domain
by Jennifer Marx
15 Mar 2016 15:06

I've been searching for a solution to this for several years now, and thought perhaps I should ask here. My vB 3.8x installation is on http://www.passporterboards.com/forums. I am able to use global.php on other, non vB pages on the http://www.passporterboards.com domain to allow my users to login. But what I really need is to allow my users to login on a PHP page on http://www.passporter.com, and stay logged in. I know it's technically possible -- my PhotoPost installation is on passporter.com and it can login users to vB and keep them logged in. I have access to the vB database on both domains, as they are on the same server. I understand that the reason I can't just use global.php on passporter.com is a cookie issue. But there must be some other way to do this. ANY hints, leads, clues, or ideas are greatly appreciated. Thank you!

Paul M 15 Mar 2016 19:04

It is, as you say, a cookie issue.

You would nee some custom code so that when you login, it creates the session cookie for both domains.


All times are GMT. The time now is 18:51.

Powered by vBulletin® Version 3.8.14
Copyright © 2022, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.