function session_encode() formats session variables for storage.
Its syntax is: boolean session_encode()
<?
session_register ( 'bgcolor' );
session_register ( 'fontcolor' );
$id = session_id ( $usr_id );
$bgcolor = "white";
$fontcolor = "blue";
$usr_data = session_encode ();
print $usr_data;
?>
Related examples in the same category