CXIII. PostgreSQL Session Save Handler

简介

警告

本扩展模块是实验性的。本模块的行为,包括其函数的名称以及其它任何关于此模块的文档可能会在没有通知的情况下随 PHP 以后的发布而改变。使用本扩展模块风险自担。

注: 本扩展模块在 Windows 平台下不可用。

This module provide additional session save handler for session module using PostgreSQL as a storage. user session save handler may be used, but this module is written in C. Therefore, this module is roughly 2 times faster than save handler written in PHP script.

Fail-over and load balance is planned to be implemented, but they are not available now.

注: There will be functions for this module, but it is not available now.

需求

You need at least PHP 4.1, PostgreSQL 7.1 and MM 1.1.3

安装

Short installation note:

  • Untar the tar.gz archive into php4/ext (Latest official releases can be found at SourceForge PHP Form Extension Project)

  • If the new directory is now called something like session_pgsql. You should name it to session_pgsql (except you only want to build it as self-contained php-module).

  • Run ./buildconf in php4

  • Run configure --with-session-pgsql (and your other options)

  • make; make install

运行时配置

这些函数的行为受 php.ini 的影响。

PostgreSQL session save handler is still under development. Refer to the README file in the source distribution for configuration details.

Contact Information

I have at the moment not very much time to further develop this extension. I will implement more and more features in the near future.

If you have comments, bug fixes, enhancements or want to help developing this, you can drop me a mail at yohgaki@php.net. Any help is very welcome.

目录
session_pgsql_add_error -- Increments error counts and sets last error message
session_pgsql_get_error -- Returns number of errors and last error message
session_pgsql_get_field -- Get custom field value
session_pgsql_reset -- Reset connection to session database server
session_pgsql_set_field -- Set custom field value
session_pgsql_status -- Get current save handler status

add a note add a note User Contributed Notes
There are no user contributed notes for this page.