|
|
LXIV. Mohawk Software session handler functionsIntroduction
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. More Information about msession and the
session server software itself can be found at
.
참고: This extension is not
available on Windows platforms.
Installation
To enable Msession support configure PHP
--with-msession[=DIR], where DIR is the
Msession install directory.
User Contributed Notes Mohawk Software session handler functions |
add a note |
carsten at sarum dot dk
06-May-2002 10:12 |
|
If you have trouble connecting to the msessiond from a php-script, this
might be the solution for you.
msessiond (and your php-extension)
both use the libphoenix.a which, among other files, is built from a file
called "mutils.cpp".
Open this file, and find a line
saying:
FILE *f = fopen("/dev/random",
"rb");
(I believe it is line 506. There's only this
one.)
On my FreeBSD 4.5 Tiny, /dev/random seldom spits out data, so
the program hangs on the next line (an fread() call). Use /dev/urandom
instead, it always sends data.
Change the line above
to:
FILE *f = fopen("/dev/urandom",
"rb");
Then rebuild phoenix-lib, msessiond, and PHP. You
might want to do a "make clean" to be sure the change is
noted.
- Carsten
|
|
a dot whyte at cqu dot edu dot au
09-May-2002 12:53 |
|
You can fix the no random data in FreeBSD's /dev/random by using rndcontrol
(as root) and setting the interupts which it looks at for
entropy.
Something like rndcontrol -s 14 -s 15 should help it
out.
|
|
mathijs at experimental dot net
13-Sep-2002 04:02 |
|
msession 1.0 (020603) is using /dev/urandom.
|
|
add a note |
| |