[Solved] Codeigniter not setting correct expire time for cookie - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: [Solved] Codeigniter not setting correct expire time for cookie (/showthread.php?tid=67789) |
[Solved] Codeigniter not setting correct expire time for cookie - wolfgang1983 - 04-09-2017 I am using google chrome. And xampp with windows 10 For some reason the expire time is not set correct for cookie 2017-04-10T11:17:38.801Z its not setting it correct I have done this below. I am trying to get it to expire in 12 hours no luck Question how to make sure it can set the expire time correct. PHP Code: $cookie_input = array( On my config.php session PHP Code: $config['sess_driver'] = 'files'; This function PHP Code: private function write_cookie($data = array()) { RE: Codeigniter not setting correct expire time for cookie - wolfgang1983 - 04-09-2017 I have got it working now so far I was using the input->set_cookie(). For me that was causing a bit of issue now using the cookie helper seems to set correct times and other stuff as well. On my Client.php library PHP Code: public function write_cookie($data = array()) { |