15 lines
249 B
Markdown
15 lines
249 B
Markdown
|
Test une session avec redis
|
||
|
============================
|
||
|
|
||
|
<?php
|
||
|
session_id('jlnp3nfrq92ffquipn4534ojbe');
|
||
|
session_start();
|
||
|
if (!isset($_SESSION['count'])) {
|
||
|
$_SESSION['count'] = 0;
|
||
|
} else {
|
||
|
$_SESSION['count']++;
|
||
|
}
|
||
|
print($_SESSION['count']);
|
||
|
?>
|
||
|
|