Thursday, August 1, 2013

Php Codeigniter Cookie Set & Get

$cookie = array(
                    'name'   => 'submit',
                    'value'  => $this->userid,
                    'expire' => '30800',
                    'path'   => '/',
                    'prefix' => 'smx_',
                   );
              
set_cookie($cookie);

$check = get_cookie('smx_submit');

No comments:

Post a Comment