[Phplib-users] Session id Prefix
Brought to you by:
nhruby,
richardarcher
From: Alexander M. <am...@si...> - 2004-09-21 14:59:34
|
Hi.... i have 2 webservers running with an cookie based load balancer in front. the session of each server is saved in their file systems. if one of the server goes down i have the problem hat some sessions are overlapping and in this way the securitiy is poor. a way to fix this is the session on nfs or in the db but it generates up to 30 mbits of network load. my idea at this point is to set a prefix to every session id. the prefix should be special to every server. example server1adbassdfas vs. server2abfadfasdn as session ids. i tryed to modify the session_id() commands in session4.inc but the session id is allways generated by php with no prefix even if i comment the lines out. can someone tell me how to set a session id wich prefix for every server? the setting can allso be done in the php.ini it does not have to be in the phplib. Thanks for helping. Greetings Alex |