Using a session between two domains

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bdeonline
Forum Commoner
Posts: 42
Joined: Sun Jul 18, 2004 10:45 am

Using a session between two domains

Post by bdeonline »

I'm needing to know how to have a session variable be transfered from one domain to another domain. I tried looking at session_set_cookie_params but can't get it to work right. Any ideas.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

do the domains share a database? if so, you can store the session information in the database. Otherwise, there's pretty much nothing you can transfer without letting the user have it, which is dangerous, as you may know.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

ADODB offers some database backed session functionality. As above, assuming both domains can access a single database, it would be worth a look.
Post Reply