Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

which is better? PHP's Session handler or Mohawk's Session handler

0 views
Skip to first unread message

Jungsu Heo

unread,
Jan 22, 2003, 3:39:05 AM1/22/03
to php-g...@lists.php.net
(Sorry for disturb you if this kind of message posted earlier.
but I can't find answers on mailint list archive)

Hello, there!

I'm developing web service.
There are several web servers for one Service.
(Linux virtual server manages load banlance)

Php's original session handling function save session information on Hard disk.
So, To share Session file, each web server mount NFS partition and
set "session.save_path" to NFS partition.

But, I wonder that this way solves Session Sync. and Performance even if
there are so many sessions.

I found another session handler "Mohawk Software session handler"
(http://www.php.net/manual/en/ref.msession.php)

Manual says :
"msession is an interface to a high speed session daemon which can run
either locally or remotely.
It is designed to provide consistent session management for a PHP web farm."

Um. but if session server goes down, the entire service will be stop.
And manual has a insufficent information about msession api.
I don't know how to use msession api exactly ;-(

Do you have any suggestion?

Php's Session handler with NFS or msession?

Is there somebody who work with any of two?

Thank you for advanced answer!


##########################
Heo, Jungsu Mr.

SimpleX Internet. http://www.simplexi.com


Jason K Larson

unread,
Jan 22, 2003, 4:05:06 AM1/22/03
to Heo, Jungsu, php-g...@lists.php.net
I can't say which or what is better, but something else to add to the
picture is that you can define your own session handlers. This would
allow you to store all the session data in a high speed database or
something similar to suit your liking (especially from a load balancing
or high availability point of view).

HTH,
Jason k Larson

0 new messages