Home

Awesome

JS in JSON Session

JS

import Session from 'js-in-json-session';

const session = new Session(jsonBundle);

session.add('Module');
const output = session.flush();

PHP

session.php

include(__DIR__.'/session.php');

$session = new JSinJSON\Session($jsonBundle);
$session->add('Module');
$output = $session->flush();

Python

session.py

from session import Session

session = Session(jsonBundle)
session.add('Module')
output = session.flush()