Skip to content

koolreport/stateless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stateless

This package will contain everything to construct a stateless PHP application.

Sessions

The first of very first of making a stateless application is to make stateless session for PHP. There are few options:

  1. Use encrypted cookie: Encryped sessions with JWT and store inside cookie.
  2. Databases: Store the sessions into databases

JWTSession

<?php

$session = new koolreport\stateless\sessions\JWTSession(60*24,"secretKey");
$session->setSessionHandler();

//Your code is here