Log message #2301134

# At Username Text
# Sep 23rd 2011, 03:40 aldodelgado I've also noticed that if your session expires and your on app.com/prefix/controller/method after the redirect, if I delete the extra part of the url /prefix/controller/method and hit enter to refresh the page. i get a new session and can start surfing again. Has anyone here had this type of experience?
# Sep 23rd 2011, 03:36 daaaan user*
# Sep 23rd 2011, 03:36 daaaan does your mysql use have delete privileges on the table?
# Sep 23rd 2011, 03:36 aldodelgado Question: I have my cakeapp session timing out in 10 seconds to test what happens after a session expires. What I'm trying to accomplish is a redirect to back to the login page if session has expired. However I can seem for the life of me figure out why its being redirected to /prefix/controller/method? I have $this->Auth->logoutRedirect = '/login'; in my before filter of app_controller
# Sep 23rd 2011, 03:35 fenix` mean to paste this: int(10) string(9) "destroyed" bool(false)
# Sep 23rd 2011, 03:35 fenix` cah
# Sep 23rd 2011, 03:35 fenix` $this->Session->write('x' ,10); var_dump($this->Session->read('x')); $this->Session->destroy(); var_dump('destroyed'); var_dump($this->Session->read('x'));
# Sep 23rd 2011, 03:35 fenix` works as expected
# Sep 23rd 2011, 03:35 fenix` $this->Session->write('x' ,10); var_dump($this->Session->read('x')); $this->Session->destroy(); var_dump('destroyed'); var_dump($this->Session->read('x'));
# Sep 23rd 2011, 03:34 fenix` daan, thats oddd
# Sep 23rd 2011, 03:34 daaaan also, i'm not sure if this was changed in 2.0 but cake 1.3 will reuse session ids if the browser sends a previously valid session id
# Sep 23rd 2011, 03:34 daaaan if self::started() isn't returning true it might not be destroying it (check your SQL logs if you're using mysql)
# Sep 23rd 2011, 03:33 daaaan what's your session store?
# Sep 23rd 2011, 03:33 daaaan hrm
# Sep 23rd 2011, 03:30 fenix` i'll try that
# Sep 23rd 2011, 03:30 daaaan no idea about 2.0, we're staying at 1.3.11
# Sep 23rd 2011, 03:30 daaaan oh
# Sep 23rd 2011, 03:30 fenix` 2.0.0
# Sep 23rd 2011, 03:29 daaaan what version of cake?
# Sep 23rd 2011, 03:29 daaaan what the hell
# Sep 23rd 2011, 03:29 fenix` session->read('x') returns $value still
# Sep 23rd 2011, 03:29 daaaan if you do $this->Session->write('x', 'y'); $this->Session->destroy(); $this->Session->read('x'); yields y?
# Sep 23rd 2011, 03:29 fenix` log in as someone else or the same user
# Sep 23rd 2011, 03:29 fenix` logout
# Sep 23rd 2011, 03:29 fenix` session->read('x') <- returns $value
# Sep 23rd 2011, 03:28 fenix` session->write('x', $value)
# Sep 23rd 2011, 03:28 daaaan $this->Session->read() is the same before and after the logout()?
# Sep 23rd 2011, 03:26 fenix` even after logging out and logging back in as another user i can access the last users session data.
# Sep 23rd 2011, 03:25 fenix` http://bin.cakephp.org/view/1459039525
# Sep 23rd 2011, 03:24 fenix` ~bin
# Sep 23rd 2011, 03:15 cpgo whatever
# Sep 23rd 2011, 03:15 cpgo read me
# Sep 23rd 2011, 03:15 cpgo you heard me
# Sep 23rd 2011, 03:15 Seguer what what
# Sep 23rd 2011, 03:14 cpgo git damn you Seguer
# Sep 23rd 2011, 01:52 Seguer damnit git
# Sep 23rd 2011, 01:26 diverdude it happens when i change something
# Sep 23rd 2011, 01:26 diverdude D
# Sep 23rd 2011, 01:26 diverdude it was a glitch in the matrix
# Sep 23rd 2011, 01:25 Section58 )
# Sep 23rd 2011, 01:25 diverdude Section58, nvm, i figured it out :)