# Cake Toolbar writing to cache, but errors reading and writing sessions

**URL:** <https://discourse.cakephp.org/t/cake-toolbar-writing-to-cache-but-errors-reading-and-writing-sessions/2757>\
**Category:** Need Help\
**Created:** [June 21, 2017, 8:22pm UTC](https://discourse.cakephp.org/t/cake-toolbar-writing-to-cache-but-errors-reading-and-writing-sessions/2757 "2017-06-21T20:22:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jnahan](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/jnahan/32/671_2.png) [@jnahan](https://discourse.cakephp.org/u/jnahan)\
**Post date:** [June 21, 2017, 8:22pm UTC](https://discourse.cakephp.org/t/cake-toolbar-writing-to-cache-but-errors-reading-and-writing-sessions/2757/1 "2017-06-21T20:22:01Z")

</div>

I’ve set up a new installation of Cake 2.8.9 on Ubuntu 14 where I have root access. I’ve been getting errors reading and writing sessions. However, the cake toolbar (perhaps from the DebugKit which I installed) is writing to app/tmp/cache

In order to make sure it isn’t something in my code, I’ve removed all of that and just tried the simple build in the multi-step form tutorial. The session read/writes in that tutorial produce the same errors.

$this-\>Session-\>read(‘forms.params’) results in this error:

Call to a member function read() on null

- I have researched and made sure that I have all permissions in the app/tmp directory correct.

- I have the configuration in core.php correct:

All of the discussions I’ve found so far about this session read/write issue address the two bullets above.

Any insights would be most appreciated. Thanks in advance!
