PHP Australia Conference 2015

session_module_name

(PHP 4, PHP 5)

session_module_nameGet and/or set the current session module

Description

string session_module_name ([ string $module ] )

session_module_name() gets the name of the current session module.

Parameters

module

If module is specified, that module will be used instead.

Return Values

Returns the name of the current session module.

add a note add a note

User Contributed Notes 1 note

up
-1
ts9904247885 at gmail dot com
3 months ago
<?php
session_start
();

$_SESSION['name']="Tushar";
$n=$_SESSION['name'];
$_SESSION['Age']="23";
$_SESSION['city']="Tarapur";

//echo session_encode()."<br/>";//Prints all Session Data
//echo session_is_registered($n);
echo session_module_name();//it prints "files"

?>

output:
files
To Top