dbxapp 4.1.3
CMS, Shop, Workflows und modulare Geschäftsanwendungen
Loading...
Searching...
No Matches
dbxSession_ephemeral_guest_test.php File Reference

Go to the source code of this file.

Classes

class  dbxSessionEphemeralGuestTestBrowser
class  dbxSessionEphemeralGuestTestApi

Functions

 dbx ()

Variables

 $dbxSessionEphemeralGuestTestApi = new dbxSessionEphemeralGuestTestApi()
 $fail
 $session = new dbxSession()
 $_SERVER ['REQUEST_METHOD'] = 'GET'
 $_COOKIE = array()
if( $session->is_ephemeral_anonymous_session_request(false)) if(! $session->is_ephemeral_anonymous_session_request(true)) $_COOKIE [session_name()] = 'existing-session-id'
 $_SERVER ['REQUEST_METHOD'] = 'POST'
if($session->is_ephemeral_anonymous_session_request(false)) $_SERVER ['REQUEST_METHOD'] = 'GET'
 $tmp
if(!session_start()) $_SESSION ['probe'] = 'temporary'
if(! $session->discard_ephemeral_anonymous_session(false)) if(session_status()===PHP_SESSION_ACTIVE) $files = glob($tmp . DIRECTORY_SEPARATOR . 'sess_*') ?: array()

Function Documentation

◆ dbx()

dbx ( )

Variable Documentation

◆ $_COOKIE [1/2]

if ( $session->is_ephemeral_anonymous_session_request(true)) $_COOKIE[session_name()] = 'existing-session-id'

Definition at line 59 of file dbxSession_ephemeral_guest_test.php.

◆ $_COOKIE [2/2]

$_COOKIE = array()

◆ $_SERVER [1/3]

if ( $session->is_ephemeral_anonymous_session_request(false)) $_SERVER[ 'REQUEST_METHOD'] = 'GET'

Definition at line 77 of file dbxSession_ephemeral_guest_test.php.

◆ $_SERVER [2/3]

$_SERVER[ 'REQUEST_METHOD'] = 'POST'

Definition at line 72 of file dbxSession_ephemeral_guest_test.php.

◆ $_SERVER [3/3]

$_SERVER[ 'REQUEST_METHOD'] = 'GET'

Definition at line 42 of file dbxSession_ephemeral_guest_test.php.

◆ $_SESSION

if (!session_start()) $_SESSION[ 'probe'] = 'temporary'

Definition at line 96 of file dbxSession_ephemeral_guest_test.php.

◆ $dbxSessionEphemeralGuestTestApi

◆ $fail

$fail
Initial value:
= static function (string $message, int $code): void {
fwrite(STDERR, "FAIL: $message\n");
exit($code);
}
exit
Definition index.php:146

Definition at line 36 of file dbxSession_ephemeral_guest_test.php.

◆ $files

if(! $session->discard_ephemeral_anonymous_session(false)) if (session_status()===PHP_SESSION_ACTIVE) $files = glob($tmp . DIRECTORY_SEPARATOR . 'sess_*') ?: array()

Definition at line 105 of file dbxSession_ephemeral_guest_test.php.

◆ $session

$session = new dbxSession()

Definition at line 41 of file dbxSession_ephemeral_guest_test.php.

Referenced by dbxSession\get_new_session().

◆ $tmp

$tmp
Initial value:
= rtrim(sys_get_temp_dir(), '/\\') . DIRECTORY_SEPARATOR
. 'dbx-session-ephemeral-' . bin2hex(random_bytes(6))

Definition at line 85 of file dbxSession_ephemeral_guest_test.php.

Referenced by dbxUpload\imagebmp(), dbxUpload\process(), and dbxUpload\temp_dir().