|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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 Feb 05 18:03:43 2023 UTC