Skip to content

Commit 01dac95

Browse files
authored
Merge pull request #6349 from naente/develop
docs: the session_id acquisition method that is not described #5586
2 parents 4632602 + f1db96b commit 01dac95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

user_guide_src/source/libraries/sessions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ necessary with our new implementation. However, it may happen that your
369369
application relied on these values, so here are alternative methods of
370370
accessing them:
371371

372-
- session_id: ``session_id()``
372+
- session_id: ``$session->session_id`` or ``session_id()`` (PHP’s built-in function)
373373
- ip_address: ``$_SERVER['REMOTE_ADDR']``
374374
- user_agent: ``$_SERVER['HTTP_USER_AGENT']`` (unused by sessions)
375375
- last_activity: Depends on the storage, no straightforward way. Sorry!

0 commit comments

Comments
 (0)