Yes.
Simple test code attached.
Have removed <?=SID?> to test transparent sid and it does not work.
But with <?=SID?> it works. foobar. 🙂
<?
/ ------------------------------------------------------------------------
test.php
------------------------------------------------------------------------
PHP4 Customer Session Handler Test Script
Version 1.00
by Ying Zhang (ying@zippydesign.com)
Last Modified: May 21 2000
/
/ default to MySQL handler /
if (! isset($handler)) {
$handler = "mysql";
}
/ default action is increment /
if (! isset($action)) {
$action = "increment";
}
if ($handler == "mysql") {
include("session_mysql.inc");
} else {
echo "<li>Unrecognized handler ($handler)";
die;
}
/ start the session and register a simple counter /
session_start();
session_register("count");
/ figure out what we should do, depending on the action /
switch ($action) {
case "increment" :
$count = isset($count) ? $count + 1 : 0;
break;
case "destroy" :
session_destroy();
break;
case "gc" :
$maxlife = get_cfg_var("session.gc_maxlifetime");
sess_gc($maxlife);
break;
default:
echo "<li>Unknown action ($action)";
break;
}
?>
<h1>Session Test Script</h1>
<ul>
<li>Handler: <b><?=$handler?></b>
<li>Action: <b><?=$action?></b>
<li>Count: <b><?=$count?></b>
</ul>
<hr size=1>
<table border="2" cellspacing="0" cellpadding="2" width="50%">
<tr>
<td>Actions:</td>
</tr>
<tr>
<td><p><a href="test.php?<?=SID?>&handler=mysql&action=increment">Increment</a> <a href="test.php?<?=SID?>&handler=mysql&action=destroy">Session Destroy</a> <a href="test.php?<?=SID?>&handler=mysql&action=gc">Force GC</a></p></td>
</tr>
</table>