How can I reset or clear a session in phalcon? I do not want to destroy the session, just reset if with new values.
$profile = ['firstname' => "bill", 'surname' => "gates"]; $this->session->set('profile' , $profile); // Bill's surname changed $profile = $this->session->get('profile'); $profile['surname'] = "williams"; // reset session somehow? since ->remove does not work :( $this->session->set('profile' , $profile);
Any help much appreciated.