API Documentação da API
Conheça  A Ferramenta LowCode mais moderna e veloz para desenvolvimento PHP: Adianti Creator
Pacote Dominando o Adianti Framework
Curso + Livro + Apps exemplo
Curso completo em Video Aulas (114 aulas).
Livro completo em PDF (463 páginas).
Códigos-fontes de Apps de Exemplo.
API
API do Framework
Documentation

Documentation

TSession
in package
implements AdiantiRegistryInterface

Session Data Handler

Tags
version
8.7
author

Pablo Dall'Oglio

copyright

Copyright (c) 2006 Adianti Solutions Ltd. (http://www.adianti.com.br)

license

https://adiantiframework.com.br/license

Table of Contents

Interfaces

AdiantiRegistryInterface
Registry interface

Properties

$contexts  : mixed

Methods

__construct()  : mixed
Class Constructor
clear()  : mixed
Clear session
delValue()  : mixed
Clear the value for a variable
enabled()  : mixed
Returns if the service is active
freeSession()  : mixed
Destroy the session data Backward compatibility
getValue()  : mixed
Returns the value for a variable
regenerate()  : mixed
Regenerate id
setValue()  : mixed
Define the value for a variable
withContext()  : mixed
Run function inside session context
buildKey()  : mixed
Build session key, using context (when inside a context)
enterContext()  : mixed
Enter session context
exitContext()  : mixed
Exit session context

Properties

$contexts

private static mixed $contexts = []

Methods

__construct()

Class Constructor

public __construct([SessionHandlerInterface|null $handler = null ][, mixed $path = null ]) : mixed
Parameters
$handler : SessionHandlerInterface|null = null
$path : mixed = null

clear()

Clear session

public static clear() : mixed

delValue()

Clear the value for a variable

public static delValue(mixed $var) : mixed
Parameters
$var : mixed

Variable Name

enabled()

Returns if the service is active

public static enabled() : mixed

freeSession()

Destroy the session data Backward compatibility

public static freeSession() : mixed

getValue()

Returns the value for a variable

public static getValue(mixed $var) : mixed
Parameters
$var : mixed

Variable Name

regenerate()

Regenerate id

public static regenerate() : mixed

setValue()

Define the value for a variable

public static setValue(mixed $var, mixed $value) : mixed
Parameters
$var : mixed

Variable Name

$value : mixed

Variable Value

withContext()

Run function inside session context

public static withContext(mixed $name, callable $callback) : mixed
Parameters
$name : mixed
$callback : callable

buildKey()

Build session key, using context (when inside a context)

private static buildKey(mixed $var) : mixed
Parameters
$var : mixed

enterContext()

Enter session context

private static enterContext(mixed $name) : mixed
Parameters
$name : mixed

exitContext()

Exit session context

private static exitContext() : mixed
On this page

Search results