PHP Classes

PHP Session Managament Class: Wrapper class to manage sessions

Recommend this page to a friend!
  Info   View files Example   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 181 This week: 1All time: 8,700 This week: 560Up
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
Age: 39
All time rank: 4200343 in Brazil Brazil
Week rank: 411 Up35 in Brazil Brazil Up

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  
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  /  src  
File Role Description
  Plain text file ClassSession.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:181
This week:1
All time:8,700
This week:560Up