[Solved] Codeigniter not setting correct expire time for cookie |
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()) {
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
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()) {
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Welcome Guest, Not a member yet? Register Sign In |