Session Management Directives
Ahmed PHP Template Engine provides multiple directives to manage session data: @makeSession
, @getSession
, and @deleteSession
.
@makeSession - Create a Session Variable
Syntax
name
: The session variable name.value
: The value to store.
Example
@getSession - Retrieve a Session Variable
Syntax
name
: The session variable name.
Example
@deleteSession - Delete a Session Variable
Syntax
name
: The session variable name.
Example
Notes
Sessions are stored on the server.
@makeSession
creates or updates a session variable.@getSession
retrieves stored session data.@deleteSession
removes a specific session variable.
Last updated