Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

File Size: 77 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SessionCookieJar:: (4 methods):
  __construct()
  __destruct()
  save()
  load()


Class: SessionCookieJar  - X-Ref

Persists cookies in the client session

__construct(string $sessionKey, bool $storeSessionCookies = false)   X-Ref
Create a new SessionCookieJar object

param: string $sessionKey          Session key name to store the cookie
param: bool   $storeSessionCookies Set to true to store session cookies

__destruct()   X-Ref
Saves cookies to session when shutting down


save()   X-Ref
Save cookies to the client session


load()   X-Ref
Load the contents of the client session into the data array