File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
3131Session::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```
You can’t perform that action at this time.
0 commit comments