How to use the same session variable betwen 3 diff. servers

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
madhu
Forum Commoner
Posts: 82
Joined: Fri Mar 03, 2006 9:34 am

How to use the same session variable betwen 3 diff. servers

Post by madhu »

hi

am using Session variables in my project.

But once when we upload all code(files),when we switch on(i.e) accessing another server,am losing the session variables.

plz solve my problem.[/b]
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

The session information will need to be synchronized across the servers. This is often done with a database that is accessible to each of the servers. Worst case, if the servers fall under the same domain, you could use a cookie, but that is trusting the users' machines. Something I wouldn't trust with much of anything.
madhu
Forum Commoner
Posts: 82
Joined: Fri Mar 03, 2006 9:34 am

How to use the same session variable betwen 3 diff. servers

Post by madhu »

hi can u plz. explain with detailed information ,how to solve this problem.........

plz this is urgent.....
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I have explained all you should need to build your solution. Do some research.
Post Reply