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; ?>