Ratings | | Unique User Downloads | | Download Rankings |
Not yet rated by the users | | Total: 182 | | All time: 8,697 This week: 50 |
Version | | License | | PHP version | | Categories |
php-session-class 1.0.0 | | Custom (specified... | | 5 | | PHP 5, User Management |
|
Description | | Author |
This package provides a wrapper class to manage sessions.
It can create a session with a given name and perform other operations to manage information stored in session data during its lifetime. Currently it can:
- Determine if a valid session was started and redirect to a logout page when it is not valid
- Destroy a session and clearing respective session cookie
- Display the values of session variable values in the pages | |
|
Example
<?php
require_once ("./src/ClassSession.php");
$session = new Session();
$session->validate();
$session->print_session();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="ISO-8859-1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>SESSION</title>
</head>
<body>
<h1>Page</h1>
</body>
</html>
|
Details
PHP-Session-Class
Classe para gerenciar sessões.
Gerencia o tempo de duração da Sessão.
A sessão é renovada automaticamente a cada nova validação.
Caso o prazo expire a sessão é destruida e o usuário redirecionado para o endereço configurado na classe.
Description of PHPClass.org
This package provides a wrapper class to manage sessions.
It can create a session with a given name and perform other operations to manage information stored in session data during its lifetime. Currently it can:
-
Determine if a valid session was started and redirect to a logout page when it is not valid
-
Destroy a session and clearing respective session cookie
-
Display the values of session variable values in the pages
php-class
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.