#4556: Redirect erases session --------------------------------------------------------------------+------- Reporter: kleingy | Owner: Type: RFC | Status: reopened Priority: Medium | Milestone: 1.3.x.x Component: Session | Version: Severity: Trivial | Resolution: Keywords: redirect session lost kleingy mustan9 the_undefined | Php_version: PHP 4 >= 4.3.2 Cake_version: | --------------------------------------------------------------------+------- Comment (by jpletka):
I just came across this in 1.2.5. Here are the steps I took to reproduce it: Submit login form on www.domain.com Redirect to subdomain.domain.com/controller/action/param1/param2 In subdomain controller, write variables to the session Redirect to /anothercontroller (in subdomain) Session is lost. I also tried just printing out a link in www.domain.com, then clicking on it. That also caused the session to be lost. If I copy and paste the link into the address bar however, it works. This was tested in Firefox 3.5.3 The only way I was able to get around it is by creating a hidden form in the subdomain.domain.com/controller view that just had a script post itself back to the controller. That built a new session that was permanent. -- Ticket URL: <https://trac.cakephp.org/ticket/4556#comment:22> CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/> Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "tickets cakephp" group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~----------~----~----~----~------~----~------~--~---