Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

session_unregister(3) [php man page]

SESSION_UNREGISTER(3)							 1						     SESSION_UNREGISTER(3)

session_unregister - Unregister a global variable from the current session

SYNOPSIS
bool session_unregister (string $name) DESCRIPTION
session_unregister(3) unregisters the global variable named $name from the current session. Warning This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0. PARAMETERS
o $name - The variable name. RETURN VALUES
Returns TRUE on success or FALSE on failure. NOTES
Note If $_SESSION (or $HTTP_SESSION_VARS for PHP 4.0.6 or less) is used, use unset(3) to unregister a session variable. Do not unset(3)$_SESSION itself as this will disable the special function of the $_SESSION superglobal. Caution This function does not unset the corresponding global variable for $name, it only prevents the variable from being saved as part of the session. You must call unset(3) to remove the corresponding global variable. Caution If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(3), session_is_registered(3) and session_unregis- ter(3). PHP Documentation Group SESSION_UNREGISTER(3)

Check Out this Related Man Page

SUPERGLOBALS(3) 							 1							   SUPERGLOBALS(3)

Superglobals - Superglobals are built-in variables that are always available in all scopes

	Several predefined variables in PHP are "superglobals", which means they are available in all scopes throughout a script. There is no need
       to do global $variable; to access them within functions or methods.

	These superglobal variables are:

	      o$GLOBALS

	      o$_SERVER

	      o$_GET

	      o$_POST

	      o$_FILES

	      o$_COOKIE

	      o$_SESSION

	      o$_REQUEST

	      o$_ENV

       +--------+---------------------------------------+
       |Version |					|
       |	|					|
       |	|	       Description		|
       |	|					|
       +--------+---------------------------------------+
       | 4.1.0	|					|
       |	|					|
       |	|  Superglobals were introduced to PHP. |
       |	|					|
       +--------+---------------------------------------+
       Note

	      Variable availability

	       By default, all of the superglobals are available but there are directives that affect this availability. For further  information,
	      refer to the documentation for variables_order.

       Note

	      Dealing with register_globals

	       If the deprecated register_globals directive is set to on then the variables within will also be made available in the global scope
	      of the script. For example, $_POST['foo'] would also exist as $foo.

	       For related information, see the FAQ titled "How does register_globals affect me?"

       Note

	      Variable variables

	       Superglobals cannot be used as variable variables inside functions or class methods.

       variable scope, The variables_order directive, The filter extension.

PHP Documentation Group 													   SUPERGLOBALS(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

setting global variable for all users

hi, i am a newbie unix administrator. i want to set a variable, let's say : alias cls 'clear' But i am not going to add this line in the .login file for every home directory of my 500+ users. pls tell me where should i put this line in, so that all users can use this variable after... (4 Replies)
Discussion started by: champion
4 Replies

2. Shell Programming and Scripting

Global variable becomes local

I have encountered a very weird behavior of a global variable in Korn Shell in AIX: A function f1 in my script pipes the output of the function f2 to a program. A variable defined as global using typeset gets its value in f2. That value is not seen in f1. If I remove the pipe ksh recognizes the... (2 Replies)
Discussion started by: odashe318
2 Replies

3. UNIX for Dummies Questions & Answers

passing a variable inside a variable to a function

I would like to know how to pass a variable inside a variable to a function. sample code below -------------- for x in 1 9 do check_null $C$x ##call function to check if the value is null if then echo "line number:$var_cnt,... (2 Replies)
Discussion started by: KingVikram
2 Replies

4. Shell Programming and Scripting

how to remove first two latter of any string

Hi, I have a variable with contain "fl080114". I want only "080114" into an another variable. input: name="fl080114" output: nm="080114" Please help. Thanks in advance. (2 Replies)
Discussion started by: rinku
2 Replies

5. Shell Programming and Scripting

Passing global variable to a function which is called by another function

Hi , I have three funcions f1, f2 and f3 . f1 calls f2 and f2 calls f3 . I have a global variable "period" which i want to pass to f3 . Can i pass the variable directly in the definition of f3 ? Pls help . sars (4 Replies)
Discussion started by: sars
4 Replies

6. Shell Programming and Scripting

Assigning value to a variable

can we make a global variable and store character values and add other values to that variable ?? for example a="hello, John" and can we add value ". How are you? so a can have "hello, John. How are you?" can someone help me?? (2 Replies)
Discussion started by: bonosungho
2 Replies

7. UNIX for Dummies Questions & Answers

Not sure why not working

Hello, I am very new to UNIX and PHP. I am using the Apached on a Windows platform. I am learning PHP and I am trying to create a variable with an XML string concatenated together on multiple lines. When I run this code, I am not getting any results. I am not sure why. Here is the... (4 Replies)
Discussion started by: EddiRae
4 Replies

8. Shell Programming and Scripting

Set variable with variable

Okay, probably an easy solution, but I've given up. I want to set a variable with a variable and print it in PHP. I just can't get the syntax right. As an example: $place = "T"; $norm_t = array("4","7"); I want to use this in a for-loop. How do I echo the first number of the norm_t... (4 Replies)
Discussion started by: wxornot
4 Replies

9. Shell Programming and Scripting

Change only the name of a variable

if I have a variable named z inside a java file, is there any way to globally change the name of the variable and all its occurences as a variable? (but not any other z that is not part of that variable name) (3 Replies)
Discussion started by: lydiaflamp
3 Replies

10. Shell Programming and Scripting

how to remove the path

Hi, I have a variable i; I want variable j to be derived from variable i for ex: i=/home/mbsprod/agency/hyb_agg_file.pl then j should be j=hyb_agg_file.pl how to do this ? Thanks, Ram. (6 Replies)
Discussion started by: ramky79
6 Replies

11. UNIX for Dummies Questions & Answers

How to assign echo in variable

I've testing the following code: echo test.txt | cut -d . -f1and get the output "text" So why can't i assign the command to a variable? VAR='"echo test.txt | cut -d . -f1"' echo $VAR (5 Replies)
Discussion started by: jl487
5 Replies

12. Emergency UNIX and Linux Support

Time delay problem in asking password

Hi All, I have solaris-11 global and multiple non-global zones running, which all are on same network. They are not in NIS. When we open putty session and give user-name, it takes long time in asking password (around 40-50 seconds) on Global zone. While on non-global zones, it is working... (9 Replies)
Discussion started by: solaris_1977
9 Replies

13. Shell Programming and Scripting

Unary operator expected

In all my Googling, this usually happens when someone is comparing a variable, and that variable is unset. That doesn't appear to be the case for me... #!/bin/bash -x while read line do f=$(echo $line | tr -s ' ' | cut -d' ' -f 3) echo $f if then echo "This... (2 Replies)
Discussion started by: jnojr
2 Replies

14. Shell Programming and Scripting

Local variable in functions (gawk)

Hi Everybody :) I need your help, because i know a local variable in a function for example k, it is different of other variable(with the same name k) this a global variable. Is that right? dgawk> run Starting program: 3238860128818202 3 4 7 11 12 13 17 22 23 32 35 37 41 48 49 55 63 ... (5 Replies)
Discussion started by: solaris21
5 Replies

15. UNIX for Dummies Questions & Answers

Unset environement variable

Hi, I have the following line in the script unset _SET_ENV_AA unset _SETENV but where I can check the value for this environement variable (2 Replies)
Discussion started by: stew
2 Replies