Download this file
21 lines (14 with data), 357 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 | <?php
$session=java_session_get("testSession", array("a" => 1, "b" => 5));
$session->put("a", $session->get("a")+1);
$session->put("b", $session->get("b")-1);
if($session->isNew()) {
echo "new session\n";
}
else {
echo "cont session\n";
}
$val=$session->get("a");
echo "session var: $val\n";
if($session->get("b")==0) $session->destroy();
?>
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.