php.net |  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.
Password:
Status:
Package:
Bug Type:
Summary:
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
   module.

However, it seems that only part two works.

The php.ini (just this line):
session.save_handler=mm

Sample code:

<?php
$name=session_module_name('files');
session_start();

if (!isset($a))
{
	session_register('a');
	$a=0;
}

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

$a++;
?>

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 15:01:29 2024 UTC