Skip to content

Commit 94ceb8e

Browse files
committed
README #4
1 parent ba74877 commit 94ceb8e

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,13 @@ Session::registerErrorHandler(function($error, $error_code)
2525
});
2626
```
2727

28-
## Setting session id *:void*
28+
## Setting or getting session id *:void*
2929
```php
30-
#This method must be implemented before Session::start
30+
#When setting ID, method must be implemented before Session::start
3131
Session::id(bin2hex(random_bytes(32)));
32+
33+
#Get ID
34+
echo Session::id();
3235
```
3336

3437
## Initializing Session
@@ -87,7 +90,7 @@ $session->all($optional_segment);
8790

8891
## Check if variable exist in current session namespace *:bool*
8992
```php
90-
$session->exists($variable_name, $in_flash);
93+
$session->exist($variable_name, $option_segment, $in_flash);
9194
```
9295

9396

@@ -103,5 +106,5 @@ $session->destroy();
103106

104107
## Regenerate session ID *:void*
105108
```php
106-
$session->rotate(true);
109+
$session->rotate($keep_old_session_data);
107110
```

0 commit comments

Comments
 (0)