|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5121 session_module_name() does not change session module
Submitted: 2000-06-19 12:56 UTC Modified: 2000-07-10 19:15 UTC
From: troels at arvin dot dk Assigned:
Status: Closed Package: Session related
PHP Version: 4.0 Latest CVS (19/06/2000) OS: Red Hat Linux 6.2
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: troels at arvin dot dk
New email:
PHP Version: OS:


 [2000-06-19 12:56 UTC] troels at arvin dot dk
My sessions work (both file-based and mm-based), but the session module can only be changed in php.ini.

session_module_name([string module]) is supposed to
1. Change the session module if the 
   optional module parameter is specified.
2. Return the name of the current session

However, it seems that only part two works.

The php.ini (just this line):

Sample code:


if (!isset($a))

print "<p>You have reloaded this page $a
	times.<br>Session module name: $name.</p>";


Sample output:
You have reloaded this page 3 times.
Session module name: mm.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-10 19:15 UTC] troels at arvin dot dk
The problem seems to have been corrected in CVS.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Apr 02 09:03:46 2023 UTC