You are here: WikiStart/Docs/Cli


Driver: Cli

patSession API for PHP-CLI - The Cli-Driver gets handy, if you want to emulate sessions for PHP-CLI.

Actually in CLI environment session support is implicit: The session last as long as the programme runs. Hence there is no need for such a thing as patSession. On the contrary you might want to use some applications and classes that rely on session. Using the CLI storage driver you can easily use then in a CLI environment without any changes in your code.

Please note:

  • The session is always active
  • All security checks are switched off
  • The values stored in this session will not survive multiple instances (the session ends when the programm ends).