anyone?? On Jun 21, 11:07 am, BoSc <[EMAIL PROTECTED]> wrote: > Hi, > > I'm currently figuring out sessions on my develop environment (XP, > Apache 2.0, PHP 5.0, newest Cake). Sessions don't seem to work > however, > > I have a index inside a controller: > > function index() { > $this->Session->write('last_visited',$url); > > } > > which sets the url of the currect page (ofcourse the $url var contains > the current url) > > when I do: > > function index() { > $this->Session->write('last_visited',$url); > die(print_r($this->Session->read()); > > } > > It shows the session with the current url (some/dir/goodpage), great > you would say. > > but when I click a link on the index page, that should call some > controller function: > > function delete() { > $this->redirect($this->Session->read('last_visited'); > > } > > it does not redirect me to the previously set url.. so i thought the > session wasn't saved, but after investigating: > > function delete() { > die(print_r($this->Session->read())); > > } > > the Session contains the set variable "last_visited" but the value has > been changes to: (some/dir/favicon.ico/) > > Anyone got an explanation? > > thanks
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---