ses

ses inspects and edits application data in the PHP session; the coo alias handles browser cookies separately, while protected authorization state remains unavailable.

DiagnosticsVersion 1.3.3StableAliases: coo
lil-terminal

Overview

Use ses for structured session data and coo for visible cookies. JSON import and export move ordinary application state, while sensitive and protected keys stay masked or blocked.

Session state and cookies are different layers

PHP session data usually lives on the server and is associated with a browser through a session cookie; cookies themselves live in the browser. ses keeps those layers separate. It can edit application state, but protected authorization data cannot be overwritten or exported.

Syntax

lil-terminal
ses [path] [options] [: value]

Reference

ses

show the session as a masked PHP array

ses <path>

show a key or escaped dotted path with its hierarchy preserved

ses <path> : <value>

store text

ses <path> -j : <json>

store a JSON value

ses <path> -d

delete a key or branch and show the updated session

ses export [path] [-o <file>]

export safe session data to JSON; default session.json

ses import <file> [path] [-r]

import JSON into the session; -r replaces existing data

-l

list top-level session keys and value types

-j

parse the value after : as JSON

coo

list visible cookie names

coo -a

show visible cookie names and values

coo <name> -d

delete one cookie and show the updated list

coo export [-o <file>]

export visible cookies to JSON; default cookies.json

coo import <file> [-r]

import cookies from JSON; -r replaces visible cookies

ses -r

reset lil-terminal working data but keep authorization

ses -R

destroy the complete session and reload the terminal

coo -c

delete visible cookies and destroy the session

Notes

Dotted paths address nested session values. Escape a literal dot with a backslash. Protected authorization state and sensitive-looking keys cannot be overwritten or exported.

Interactive sandbox preview

Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.

Store structured session data and read it back

Install and manage

Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.

Base and Minimum are two packages of the same current module release, not separate command versions.

Base package

Install the complete package with local command reference and every published mode.

install ses
Minimum package

Install the reduced package. Local reference is omitted; help <cmd> -i opens the current server reference.

install ses -m
Exact public version

Install exactly this published version.

install ses -v 1.3.3
Check or update

Ask upgrade to check compatibility and replace the installed block only when needed.

upgrade ses
Remove module

Remove the extension block while leaving the core and unrelated modules intact.

install ses -u

Examples

Examples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.

Store structured session data and read it back
ses profile -j : {"name":"Ada","role":"admin"} | ses profile
Array
(
    [name] => Ada
    [role] => admin
)
Show the session as a masked PHP array
ses
Array
(
    [profile] => Array
        (
            [name] => Ada
            [role] => admin
        )
)
List top-level session keys and value types
ses -l
profile  object
List visible cookie names
coo
locale
theme

coo is the short route to the cookie branch of ses, keeping session and cookie inspection in one module.

Show visible cookie names and values
coo -a
locale  ru
theme   dark

coo is the short route to the cookie branch of ses, keeping session and cookie inspection in one module.

Show a key or escaped dotted path with its hierarchy preserved
ses auth
[hidden]
Protect authorization state
ses auth : "x"
Protected session key

Related documentation

Current public release

v1.3.32026-08-10

Protected database driver sessions

Current stable release of ses. ses inspects and edits application data in the PHP session; the coo alias handles browser cookies separately, while protected authorization state remains unavailable.