How to store the session values in array in cake php3

In cake php I am using session to store the values but every time the session is overwritten with new session value.so i am using array to store the session value and list all the session values I am new to cake PHP 3 can any one help.

$session = $this->request->session();
$session->write('search', $repeats);

here i am creating an session in cake php

Answers


Yes, cakephp allow you store the session values in array

//Sample:
$this->Session->write('User.email', 'abc@example.com');
$this->Session->write('User.phone', '090x108986');
$this->Session->write('User.site', 'http://rao5s.vn');
// Now you can read a array from Session
$arrUser = $this->Session->read('User');

Need Your Help

Mock native method with a Robolectric Custom shadow class

class mocking shadow robolectric

I have a class with a regular method and a native method that I'd like to mock:

How do I set individual row names in R

r matrix

I'm new to R and would like to know how I can set row names to a large matrix with dimensions 92,235 x 17.