php4-beta | 200004
Date: 04/12/00
- Next message: Andi Gutmans: "Re: [PHP4BETA] while/each issue on PHP/4.0RC2-dev"
- Previous message: Alex Noffe: "[PHP4BETA] global error??"
- Next in thread: mark kimsal: "[PHP4BETA] session_set_save_handler()"
- Maybe reply: mark kimsal: "[PHP4BETA] session_set_save_handler()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'm trying to get the example off the php manual about sessions to
work. It's the one
in which dummy functions that just output text are replaced for the
default session
functions. The default functions are overriden with
session_set_save_handler
(open,close,read,write,destroy,gc); When I do this, the close and write
functions are
never called, so the output that is shown in the example never gets
printed.
my output:
set the handler functions
open (/tmp, PHPSESSID)
read (c5a5dcd813cb3f7b650d284b03dd865f)
session started (open and read called)
registered foo (nothing happens)
example's output:
open (/tmp, PHPSESSID)
read (f08b925af0ecb52bdd2de97d95cdbe6b)
write (f08b925af0ecb52bdd2de97d95cdbe6b, foo|i:2;)
close
the code is copied and pasted, with the few syntax corrections added as
well as a few
comments so that you know where the output _should_ be. Please note
that default file
handling of sessions works properly. Has anyone successfully integrated
a database with
php4 session functions? I'm using RC1 on red hat and apache.
-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: Andi Gutmans: "Re: [PHP4BETA] while/each issue on PHP/4.0RC2-dev"
- Previous message: Alex Noffe: "[PHP4BETA] global error??"
- Next in thread: mark kimsal: "[PHP4BETA] session_set_save_handler()"
- Maybe reply: mark kimsal: "[PHP4BETA] session_set_save_handler()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

