|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #75704 Document that objects in sessions are automatically serialized & unserialized.
Submitted: 2017-12-19 00:28 UTC Modified: 2020-12-09 15:36 UTC
From: ww dot galen at gmail dot com Assigned:
Status: Verified Package: Session related
PHP Version: Irrelevant OS: n/a
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: ww dot galen at gmail dot com
New email:
PHP Version: OS:


 [2017-12-19 00:28 UTC] ww dot galen at gmail dot com
From manual page:

The object serialization & sessions manual page gives the impression that the only way to automatically have an object be serialized and unserialized is through the use of the long since removed `session_register()`. It could use an update that explicitly states that objects in `$_SESSION` get serialized & unserialized automatically (with the latter being triggered by `session_start()`).


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-01-01 22:21 UTC]
-Package: Documentation problem +Package: Session related
 [2020-12-09 15:36 UTC]
-Status: Open +Status: Verified
 [2020-12-09 15:36 UTC]
I don't think it actually makes sense to describe session
(un)serialization behavior on that page.  That should better be
done in the session documentation or on the $_SESSION page; a link
to that documentation could be added to the serialization docs.

Anyhow, the session_register() referrals need to be removed from
that page.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 17 06:01:28 2024 UTC