I use Kohana framework 3.3. I use sessions to select a city. However, not so long ago, magic began to occur.

I choose a city (all is well). I move to another page, a different value is displayed.

That's how I set the city for the session.

Session::instance()->set('city', $query['city']); 

Video of the process of the session wrong work. http://take.ms/IARiQ

  • and what in session on other page to be? - Naumov
  • @Naumov session is defined in the controller, which is connected to all the controller on the site. Session of the city is set in the function before () - Dinfy

0