Rendril Posted July 24, 2010 Report Share Posted July 24, 2010 (edited) [b]void[/b] mds_retrieve_sessdata(variable $holder, [i]optional[/i] int $index); [b]Parameters[/b] Holder is a variable that will be given the stored value. Index indicates which session box to retrieve from. There are 10 boxes, numbered 0 to 9. The default is 0. See the related function [url="http://magicduel.invisionzone.com/topic/7583-function-mds-store-sessdata"]mds_store_sessdata()[/url]. If you have stored a serialized value, you will need to unserialize it after retrieving. Example 1: [code] mds_store_sessdata('bakery', 2); mds_retrieve_sessdata(@vd, 2); //@vd now has 'bakery' [/code] Example 2: Unserializing [code] @vd = array( 've' => uv('ve'), 'vp' => uv('vp'), 't' => time() ); mds_store_sessdata(serialize(@vd)); mds_retrieve_sessdata(@va); @va = unserialize(@va); [/code] Edited July 24, 2010 by Rendril Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.