<?php
function open($save_path, $session_name)
{
echo "open";
}
function close()
{
echo "close";
}
function read($id)
{
echo "read";
}
function write($id, $sess_data)
{
echo "write";
}
function destroy($id)
{
echo "destroy";
}
function gc($maxlifetime)
{
echo "gc";
}
session_set_save_handler("open", "close", "read", "write", "destroy", "gc");
// test thử phát
session_start();
?>