I'm using this sessionHandler as my sessionHandler
.
The problem is that since I'm using it I can not initialize / log off.
index.php
include_once( 'sessionHandler.php' );
$sessionHandler = new SessionSaveHandler(USER_NAME, PASSWORD, HOST, DATA_BASE,
"session", "my_session_name");
if(!isset($_SESSION['id']))
include_once 'login.php';
login.php
<?php
if($_SERVER['REQUEST_METHOD'] == 'POST')
{
include_once 'verifica.php';
}
?>
<form id="login-form" class="form-signin" method="post" action="">
<label for="username">Username</label>
<input id="username" name="username" type="text"/>
<label for="password">Password</label>
<input id="password" name="password" type="password"/>
</form>
verify.php
//se a password e o login fizerem match:
$_SESSION['id'] = $id; //retornado da query sql.
...
header('Location: index.php');