![]() |
Sharing cookies between vB and custom mods.
I have a custom developed addon for vBulletin that currently ties into the user table so users are able to enter their current username and passwords into the application login form to log themselves in and edit the information this modification contains.
One small problem we are having is, that users have to login both at the forums and the modification. Is there any easy way to share the cookie between them, or another way so users won't have to login twice |
If they are both on the same domain, you just get vBulletin to set the cookies for your site, and vice versa.
|
They are, do I also need to include global.php in the php files as well?
|
There is no need for that - all you have to do is replicate the cookies that vBulletin sets on login (see login.php).
|
Code:
// ############################### start do login ############################### Thanks for your help, this should get us at least on the correct path again |
Also look in functions_login.php, as login.php refers to functions in that file.
|
All times are GMT. The time now is 06:36 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|