com\setasign\SetaFramework\Session

GlobalSession

File: /SetaFramework/src/Session/GlobalSession.php

Class hierarchy

Summary

Static Properties

$fakeMode

static private bool GlobalSession::$fakeMode = false

$fakeStatus

static private int GlobalSession::$fakeStatus = 1

Static Methods

commit()

public static GlobalSession::commit (
void
): void

Write session data and end session.

See

destroyAll()

public static GlobalSession::destroyAll (
void
): bool

Destroys the complete session.

Exceptions

Throws SessionException

getId()

public static GlobalSession::getId (
void
): string

Returns the actual session id.

getStatus()

public static GlobalSession::getStatus (
void
): int

Returns the current session status.

regenerateId()

public static GlobalSession::regenerateId (
bool $deleteOldSession = false
): bool

Update the current session id with a newly generated one.

Parameters
$deleteOldSession : bool

Whether to delete the old associated session file or not.

start()

public static GlobalSession::start (
void
): void

Starts the session.

If the session is already started the call is ignored.

Exceptions

Throws SessionException

startFakeMode()

public static GlobalSession::startFakeMode (
void
): void

Starts an imaginary session.

Shouldn't be used in productive enviroments!


Methods

__construct()

private GlobalSession::__construct (
void
)