Install the complete package with local command reference and every published mode.
install sessesWhen a PHP site remembers a cart, language choice or sign-in between page requests, the server may keep those values in a PHP session.
When a PHP site remembers a cart, language choice or sign-in between page requests, the server may keep those values in a PHP session.
Run
ses [path] [options] [: value]sesshow the session as a masked PHP array
ses -llist top-level keys and types
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> -ddelete 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
ses -rreset lil-terminal working data but keep authorization
ses -Rdestroy the complete session and reload the terminal
Run
Export only the safe part of a session to a JSON file if you need to inspect or reproduce a configuration. Import with -r only when replacing existing values is intentional. An export creates a file in the hosting account; review access permissions and remove it when no longer needed.
The module masks some names associated with passwords or tokens and protects designated session keys. That is a name-based safeguard, not an exhaustive secret detector: inspect any output before sharing.
In Minimum, only
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.
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.
Install the complete package with local command reference and every published mode.
install sesInstall the reduced package. Local reference is omitted;
install ses -mInstall exactly this published version.
install ses -v 1.3.6Ask upgrade to check compatibility and replace the installed block only when needed.
upgrade sesRemove the extension block while leaving the core and unrelated modules intact.
install ses -uExamples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.
sesArray
(
[c] => /sandbox
[b] => /sandbox
[profile] => Array
(
[name] => Ada
[active] =>
[roles] => Array
(
[0] => viewer
)
)
[auth] => [hidden]
[auth_prompt] => [hidden]
[account_token] => [hidden]
[key] => Array
(
[theme] => sunny
)
)
ses -laccount_token string
auth string
auth_prompt array
b string
c string
key object
profile objectses profile.nameAdases profile.name : Ada+ses profile.nameAdases profile.active -j : true+ses profile.activefalseses profile.roles -j : ["editor","viewer"]+ses profile.rolesArray
(
[0] => viewer
)
ses profile.name -dArray
(
[c] => /sandbox
[b] => /sandbox
[profile] => Array
(
[active] =>
[roles] => Array
(
[0] => viewer
)
)
[auth] => [hidden]
[auth_prompt] => [hidden]
[account_token] => [hidden]
[key] => Array
(
[theme] => sunny
)
)
ses profile.unknownSession path not foundses auth[hidden]ses auth : openProtected session keyses profile.active -j : {invalid}Invalid JSON: Syntax errorses export profile -o sandbox/session-profile.jsonFile session-profile.json
Bytes 82ses export auth -o sandbox/auth.jsonProtected session keyses import sandbox/session-safe.json profile -rArray
(
[c] => /sandbox
[b] => /sandbox
[profile] => Array
(
[name] => Bea
[active] =>
)
[auth] => [hidden]
[auth_prompt] => [hidden]
[account_token] => [hidden]
[key] => Array
(
[theme] => sunny
)
)
ses import sandbox/session-safe.json profileSession path exists; use -rses -r+ses -RThe PHP session is destroyed and the terminal reloads.ses -l -j?Current stable release of