[thelist] [OT] - geek of the week
Jeremy Ashcraft
ashcraft at 13monkeys.com
Thu Jul 26 23:34:33 CDT 2001
(Sorry matt, I've got a good tip coming.........)
Please forgive the off-topic post, but this may interest a few folks on this
list.....
Some of you from that "other" list from the old hotwired days may remember
the Geek of the Week section they had in their members area. I used to love
that section and spent many an hour at work entering. Anyway, in the spirit
of the old GOTW, I've created a Geek O' the Week contest of my own. I'm not
doing this to get people to visit my site. I could really care less about
that. I just want to get people involved in something I thought was really
cool and miss seeing.
you won't get anything(yet) for winning, just the satisfaction of being King
Geek for 7 days. If you want to participate, head on over. If not, that's
cool too. Here you go....
http://www.webhack.com/?src=geek
enjoy(or not)
jeremy
<tip type="php sessions">
Sessions on PHP(and I imagine ASP and JSP too) do not work properly in a load
balanced server environment. Say server X and server Y are 2 servers in a
load balanced cluster. A user connects to server X and create a session.
The next request might go to server Y which has no knowledge of the session.
An easy way to resolve this problem in PHP is to use the session_save_path()
function. Since the directory where PHP saves sessions is specified in the
php.ini file and is usually /tmp or C:\TEMP, this is what causes the problem
since both are seperate directories on 2 different boxes. To solve this,
find a shared directory that all load balanced servers have access to and
create a tmp directory to store your sessions. Use the session_save path
function after your session_start() function call to set the session save pth
to this new shared tmp directory. There you go. Load balancing and PHP
sessions!!
</tip>
More information about the thelist
mailing list