Back to Opencart

Class Opencart\System\Library\Session

docs/api/Opencart.System.Library.Session.html

4.1.0.34.0 KB
Original Source

Namespaces

Classes

Class Opencart[System](http://localhost\opencart-master/docs/api/namespace-Opencart.System.html)\[Library](http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.html)\[Session](http://localhost\opencart-master/docs/api/Opencart.System.Library.Session.html)

Class Session

Located at system\library\session.php

Methods
`
public

			` | `__construct(string $adaptor, Registry $registry)`

Constructor

Constructor

| # | | `

public

			` | `getId(): string`

Get Session ID

Get Session ID

| # | | `

public

			` | `start(string $session_id = ''): string`

Start Starts a session.

Start Starts a session.

Returns

returns the current session ID

| # | | `

public

			` | `close(): void`

Close Writes the session data to storage

Close Writes the session data to storage

| # | | `

public

			` | `destroy(): void`

Destroy Deletes the current session from storage

Destroy Deletes the current session from storage

| # | | `

public

			` | `gc(): void`

GC Garbage Collection

GC Garbage Collection

| # |

Properties
`
protected

			` | `object` | `$adaptor`

| # | | ` protected

			` | `string` | `$session_id`

| # | | ` public

			` | `array<mixed>` | `$data = []`

| # |

OpenCart API API documentation generated by ApiGen dev-master