Skip to content

Commit 38ce069

Browse files
committed
replace stdClass with array
1 parent 4513ec9 commit 38ce069

File tree

10 files changed

+107
-501
lines changed

10 files changed

+107
-501
lines changed

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,30 @@
22
PHP Session Manager (non-blocking, flash, segment, session encryption). Uses PHP [open_ssl](http://php.net/manual/en/book.openssl.php) for optional encrypt/decryption of session data.
33

44
### Driver support Scope
5-
![File](https://img.shields.io/badge/FILE-completed-blue.svg?style=flat-square)   ![File](https://img.shields.io/badge/COOKIE-completed-blue.svg?style=flat-square)   ![File](https://img.shields.io/badge/SQL-completed-blue.svg?style=flat-square)   ![File](https://img.shields.io/badge/MEMCACHE-active-brightgreen.svg?style=flat-square)   ![File](https://img.shields.io/badge/REDIS-queued-lightgray.svg?style=flat-square)   
5+
![File](https://img.shields.io/badge/FILE-completed-blue.svg?style=flat-square)   ![File](https://img.shields.io/badge/COOKIE-completed-blue.svg?style=flat-square)   ![File](https://img.shields.io/badge/SQL-completed-blue.svg?style=flat-square)   ![File](https://img.shields.io/badge/MEMCACHED-active-blue.svg?style=flat-square)   ![File](https://img.shields.io/badge/REDIS-active-brightgreen.svg?style=flat-square)   
66

7-
## Initializing Session
7+
8+
## Registering Error Handler
89
```php
9-
# Register Error Handler
10+
#This method must be implemented before Session::start
1011
Session::registerErrorHandler(function($error, $error_code)
1112
{
12-
# Debug::Log($error)
13-
# throw new RuntimeException($error);
13+
#Debug::Log($error);
1414
});
15-
16-
$session = Session::start($optional_session_namespace);
1715
```
16+
1817
## Setting session id *:void*
1918
```php
19+
#This method must be implemented before Session::start
2020
Session::id(bin2hex(random_bytes(32)));
21+
```
2122

23+
## Initializing Session
24+
```php
2225
$session = Session::start($optional_session_namespace);
2326
```
2427

28+
2529
## Using Segment *:Segment*
2630
```php
2731
$segment = $session->segment($required_segment_name);

index.1.php

Lines changed: 0 additions & 53 deletions
This file was deleted.

index.php

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)