PHP session in load balance web

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
leulae
Forum Newbie
Posts: 14
Joined: Fri Jan 01, 2010 2:48 am

PHP session in load balance web

Post by leulae »

As a experiment I hope to setup two web servers (Server A and B)to load balance and one DNS, if somebody logged Server A using his user ID and password session on the server A will create, I guess I cant restrict the same user attempt to log to server B from different place because both server keep sessions independently, Am I right, how I overcome this problem.

thanks
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: PHP session in load balance web

Post by Christopher »

Use a database or some other server based session system, rather than a file based one.
(#10850)
Post Reply