koolreport/stateless

Assist creating stateless application

1.0.0 2024-01-26 08:43 UTC

This package is auto-updated.

Last update: 2024-04-28 09:27:37 UTC


README

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