class \mpf\web\Session

class \mpf\web\Session

-no description found-

Attributes
private static bool $sessionStarted = false

Records if session has been already started or not.

private static \mpf\web\Session $_instance

-no description found-

Methods

public static \mpf\web\Session get ()

-no description found-

public string id (null $newId = null)

  • $newId

    -no description found-

Get session ID

protected mixed init (mixed $config)

  • $config

    -no description found-

-no description found-

public mixed value (string $key)

  • $key

    -no description found-

Get value of selected key.

public \mpf\web\Session set (string $key, mixed $value)

  • $key

    -no description found-

  • $value

    -no description found-

Set a value for specific key.

public \mpf\web\Session updateListItem (string $key, string $itemKey, mixed $itemValue, array $listDefaultValue = [])

  • $key

    -no description found-

  • $itemKey

    -no description found-

  • $itemValue

    -no description found-

  • $listDefaultValue

    -no description found-

Updates a single item from list. If that list is not found then it will have the selected default value that will then be updated with the selected options.

public \mpf\web\Session delete (string $key)

  • $key

    -no description found-

Delete selected key from session.

public bool exists (string $key)

  • $key

    -no description found-

Check if a selected key exists in session.