★ wanayoo — archive 1999 http://www.php.net/manual/it/function.session-unset.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Sessions
Quick Reference
English version of this pageGerman version of this pageJapanese version of this pageHungarian version of this page
Sessions
* session_start
* session_destroy
* session_name
* session_module_name
* session_save_path
* session_id
* session_register
* session_unregister
* session_unset
* session_is_registered
* session_get_cookie_params
* session_set_cookie_params
* session_decode
* session_encode
Manual: session_unset
View the source code for this pageSearch the site



Previous page
 session_unregister
 Updated
Sun, 06 Aug 2000
session_is_registered 
Next page


session_unset

(PHP4 >= 4.0b4)

session_unset --  Free all session variables

Description

void session_unset (void);

The session_unset() function free's all session variables currently registered.


User Contributed Notes: session_unset


nico@primary.com.ar
12-Jul-2000 02:03
Any one knows the diference betwen session_destroy() and session_unset() ?


j a s o n p 0 1 9 @yahoo.com
13-Jul-2000 01:26
I would say that the difference is that session_destroy() destroys the session variables, both in the script and where the session data is stored on disk. session_unset() is like doing a session_unregister() on all registered variables. They can still be re-registered by calling session_register() whereas after session_destroy, they cannot.


blank@imneverwrong.com
30-Jul-2000 08:38
yes, I think the destroy closes the session while unset frees all registered variables but leaves the session opened.


 About Notes


Previous page
 session_unregister
 Updated
Sun, 06 Aug 2000
session_is_registered 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.