PDA

View Full Version : Accessing session cookie across sub-domains


jminiman
01-23-2002, 08:00 PM
Hi,

We are trying to allow users to browse our software database http://software.pocketnow.com and post comments to vB. We can easily post using their login (after first verifying them), but we can't find a way to access the session cookie from vB (our vB is located at http://discuss.pocketnow.com).

So, is there any way we can access the discuss.pocketnow.com session cookie from software.pocketnow.com? Or, is this impossible?

Scott MacVicar
01-23-2002, 08:08 PM
set the cookie domain in the admin panel to

.pocketnow.com

yes it must begin with a period

jminiman
01-23-2002, 08:14 PM
Thanks!!

KuraFire
10-16-2002, 09:39 AM
question: how did you do that? I want to access my $bbuserinfo array-variable in quotes.kurafire.com but when I include global.php (which is adjusted to point to hardcoded paths > functions.php etc.) I only can get a Guest version of $bbuserinfo :(

Please tell me what I need to do.. putting .kurafire.com as my cookie domain didn't do much so far :(

KuraFire
10-16-2002, 09:43 AM
nm, had to log out and log in again before it worked, duh :)

Scott MacVicar
10-18-2002, 09:37 AM
yeah when you logged out and logged in it would set the new cookie which can be accesed accross all domains.

DrScion
08-24-2004, 10:45 PM
For some incredibly odd reason, I can not access my cookie information...

The cookie domain is .mysite.com in the admin cp, and all the information IS stored in the cookie, but when I try to call the cookie information, it wont print anything.

Weird thing is, access to page x.php requires that bbpassword be set ($_COOIKE['bbpassword']) it works, I can access page x.php. However once we/I are on page x.php I cant

echo $_COOKIE['info'];


any clue?