The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
$vbulletin->userinfo[username] does not work in Subdomains
I want to read the vb username for login at a new page. But it does not work. I added a test page in the menue of vb (see below).
The forum is running at http://forum.domain.com The testpage is running http://wiki.domain.com It is only working in older vb versions and in the same subdomain. I'm using now version 4.15 but something changed in the version that this is not running anymore on different Subdomains. Are there any ideas how to solve that? The output of this page is always 'Unregistered'. PHP Code:
Cookie domain is .domain.com Thanks for any help! |
#2
|
|||
|
|||
You say you have the cookie path set to '/'? When I first tried this I was getting "Unregistered", then I set my cookie path to '/', logged out and back in again, and then it started working.
|
#3
|
|||
|
|||
Yes, thanks a lot! It works
I logged out and in again at the forum and then the username was shown. Something was wrong with the cookie when i tested this before. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|