# |
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 :) |
# |
Sep 23rd 2011, 01:25 |
Section58 |
diverdude: bake ... i am not a bake user |
# |
Sep 23rd 2011, 00:58 |
diverdude |
hmm, when i try and run cake bake view all i get: Error: Database table alcoholhabits for model Alcoholhabit was not found. But i have a table called alcholhabits. What could be wrong? |
# |
Sep 23rd 2011, 00:41 |
Seguer |
ddoom_: extract then merge |