Welcome Guest, Not a member yet? Register   Sign In
cookie/session expiration time
#1

[eluser]Bartolo![/eluser]
Hi all,

i'm already using a session (with db) for my authentication.

right now i want to save a chosen language to a cookie and save that for a long time so they dont have to set their language every time.

Code:
$cookie = array('name' => 'language', 'value' => $this->input->post('language'), 'expire' => '31104000', //seconds, approx. one year

before this, my session (auth) always ended when i closed the window. that was good. but now when i set the cookie i looks like the cookie also saves my session for that time.

so when i close the window and come back to the web application, I'm still logged in. thats not the way it supposed to be.

How can i separate these two?

Thanks in advance!

regards,

Bartolo


Messages In This Thread
cookie/session expiration time - by El Forum - 11-22-2010, 10:50 AM
cookie/session expiration time - by El Forum - 11-22-2010, 11:48 AM
cookie/session expiration time - by El Forum - 11-22-2010, 01:44 PM
cookie/session expiration time - by El Forum - 11-22-2010, 01:57 PM
cookie/session expiration time - by El Forum - 11-23-2010, 02:08 AM
cookie/session expiration time - by El Forum - 11-23-2010, 05:25 AM
cookie/session expiration time - by El Forum - 11-23-2010, 05:33 AM
cookie/session expiration time - by El Forum - 11-23-2010, 06:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB