Forum Moderators: coopster

Message Too Old, No Replies

PHP.ini: session.save handler = user ?

session.save_handler = user undocumented?

         

roMancer

7:14 pm on Nov 6, 2008 (gmt 0)

10+ Year Member



can someone elaborate on 'session.save_handler' directive? what values are possible? 'files' is self-explanatory - what about 'user'?

i've seen example code setting custom handlers (session_set_save_handler()) for session management with a MySQL database. but only one of these examples denotes that you have to set...

session.save_handler = user

...can someone explain? this is very rarely documented.

[edited by: eelixduppy at 7:45 pm (utc) on Nov. 6, 2008]
[edit reason] removed URL [/edit]

jatar_k

2:42 pm on Nov 7, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



did you read through this?

[php.net...]

and if so did it provide any insight?

roMancer

3:11 pm on Nov 7, 2008 (gmt 0)

10+ Year Member



hi there,

thanks for your reply, yes, I did, and I was quite surprised to find the 'user' value for session.save_handler undocumented. It's mentioned in some of the user notes below the reference documentation, but its usage isn't explained anywhere (neither at session_set_save_handler(), nor at the php.ini directives documentation).

regards,
ro