search for in the  
<session_destroysession_get_cookie_params>
Last updated: Thu, 19 May 2005

session_encode

(PHP 4, PHP 5)

session_encode --  Encodes the current session data as a string

Description

string session_encode ( void )

session_encode() returns a string with the contents of the current session encoded within.

See also session_decode()



User Contributed Notes
session_encode
<carlos sica>sica at wnet dot com dot br
05-May-2005 11:19
session_encode() just return the session dataset in a formatted form

session_start();

$_SESSION['login_ok'] = true;
$_SESSION['nome'] = 'sica';
$_SESSION['inteiro'] = 34;

echo session_encode();

this code will print

login_ok|b:1;nome|s:4:"sica";inteiro|i:34;

<session_destroysession_get_cookie_params>
 Last updated: Thu, 19 May 2005
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: The Server Pages
Last updated: Thu May 19 17:35:34 2005 CDT