Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dylan Lopez
Added: Mar 6, 2018 9:22 AM
Views: 7
  1. $cookie = array(
  2.         'name'   => 'The Cookie Name',
  3.         'value'  => 'The Value',
  4.         'expire' => '86500',
  5.         'domain' => '.some-domain.com',
  6.         'path'   => '/',
  7.         'prefix' => 'myprefix_',
  8.         'secure' => TRUE
  9. );
  10.  
  11. $this->input->set_cookie($cookie);