Hi,
from looking at the code, and not doing any testing. I see that you
have named your session variable "Session.cookie" but in you session
delete statement you are trying to delete "foo". Does going this-
>Session->delete('Session.cookie'), work to solve your problem.
As a side note, I see that you are calling your variable "cookie", are
you using cookies in you site as well?
Regards
Wilhelm
On Sep 11, 6:58 am, rogwei <[email protected]> wrote:
> More...
>
> Tested on local MAMP platform.
> Also tested on remote Debian LAMP platform.
>
> Browsers tested...
> chrome on Mac and PC
> firefox on Mac
>
> On Sep 10, 9:53 pm, rogwei <[email protected]> wrote:
>
> > BTW, I am using Auth and ACLs, and Session.save is set to 'php'.
>
> > On Sep 10, 9:46 pm, rogwei <[email protected]> wrote:
>
> > > I have searched this forum for 'delete session' and the cakeQs forum
> > > for the same. I cannot find the answer. A similar post in June had no
> > > replies. I am about to blow a gasket! Please somebody tell me how to
> > > delete the session data.
>
> > > If users can drop into my app from history or bookmarks with data from
> > > a previous session, I am screwed. But currently, the session cookie
> > > persists beyond any attempts to delete it specifically, delete the
> > > entire session cookie, or destroy the session.
>
> > > /* core.php */
> > > Configure::write('Session.cookie', 'foo');
>
> > > /*users_controller.php */
>
> > > function logout() {
> > > $this->Session->delete('foo');
> > > $this->Session->destroy();
> > > $this->redirect($this->Auth->logout());
> > > }
>
> > > Even after the user logs out and is redirected to a *different* page
> > > (not login page), the data remains and is available to $session-
>
> > > >read(); in the view/layout.
>
> > > Somebody please tell me how to do the magic dance.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en