PHP的Session管理框架 patSession

码农软件 · 软件分类 · 其他开发相关 · 2019-11-01 06:59:46

软件介绍

patSession 是一个用来管理 HTTP 的会话(Session)的抽象层,当你的PHP应用需要操作Session时,使用它可以大大简化操作的过程。

示例代码:

// patSession requires patError!
require_once 'pat/patErrorManager.php';

// include the factory/load of patSession
require_once 'pat/patSession.php';

// start the session
$sess = patSession::singleton( 'my_first_session' );
// start the session
$sess = patSession::singleton( 'my_first_session' );

$sess['box'] = 'Jack';
$sess->set( 'box', 'jack' );
echo 'Look! There is ' . $sess->get( 'box' ) ' in the box<br />';

$sess['bar'] = 'foo';

echo '<b>class name:</b> ' . get_class( $sess ) . '<br />';

本文地址:https://codercto.com/soft/d/18008.html

Bulletproof Web Design

Bulletproof Web Design

Dan Cederholm / New Riders Press / 28 July, 2005 / $39.99

No matter how visually appealing or packed with content a Web site is, it isn't succeeding if it's not reaching the widest possible audience. Designers who get this guide can be assured their Web site......一起来看看 《Bulletproof Web Design》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具