TracNav menu
Driver: Native
patSession API for $_SESSION - Driver for common web applications.
As mentioned in the introduction, patSession uses plugable drivers that implement different storage modules for session values. Native was the first real storage driver for patSession. As you might guess, this driver uses the PHP internal session features. Or, the other way arround, Native implements the abstraction layer to access session values that are be stored in $_SESSION.
For practical reason, Native is the default driver. Other drivers may be used to store session-values in databases, to share a session between multiple web servers or apply sessions on HTTP-authentication?.
Additional Session Options
- name allows to change the standard session name to, see session_name()
- id use an external calculated session id
