PHP  
downloads | documentation | faq | getting help | | php.net sites | links 
search for in the  
previousmysql_unbuffered_querymsession_connectnext
Last updated: Tue, 28 May 2002
view this page in Printer friendly version | English | Brazilian Portuguese | Czech | Dutch | French | German | Hungarian | Italian | Japanese | Korean | Polish | Romanian | Russian | Spanish | Turkish

LXIII. Mohawk Software session handler functions

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.

The session server software can be found at .

Sis�llys
msession_connect -- Connect to msession server
msession_count -- Get session count
msession_create -- Create a session
msession_destroy -- Destroy a session
msession_disconnect -- Close connection to msession server
msession_find -- Find value
msession_get -- Get value from session
msession_get_array -- Get array of ... ?
msession_getdata -- Get data ... ?
msession_inc -- Increment value in session
msession_list -- List ... ?
msession_listvar -- List sessions with variable
msession_lock -- Lock a session
msession_plugin -- Call an escape function within the msession personality plugin
msession_randstr -- Get random string
msession_set -- Set value in session
msession_set_array -- Set array of ...
msession_setdata -- Set data ... ?
msession_timeout -- Set/get session timeout
msession_uniq -- Get uniq id
msession_unlock -- Unlock a session
User Contributed Notes
Mohawk Software session handler functions
add a note about notes

06-May-2002 09: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


09-May-2002 11: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.

add a note about notes
previousmysql_unbuffered_querymsession_connectnext
Last updated: Tue, 28 May 2002
show source | credits | stats | mirror sites:  
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by:
Last updated: Sat Jul 6 00:05:55 2002 CEST