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 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