PHP Classes

PHP Session Managament Class: Wrapper class to manage sessions

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 182 All time: 8,697 This week: 50Up
Version License PHP version Categories
php-session-class 1.0.0Custom (specified...5PHP 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

Picture of Angelo R. Pinto
Name: Angelo R. Pinto <contact>
Classes: 1 package by
Country: Brazil Brazil

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


  Files folder image Files (6)  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file logado.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file sair.php Example Example script

  Files folder image Files (6)  /  src  
File Role Description
  Plain text file ClassSession.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:182
This week:0
All time:8,697
This week:50Up