# Session renew not working

**URL:** <https://discourse.cakephp.org/t/session-renew-not-working/1119>\
**Category:** Need Help\
**Created:** [September 7, 2016, 7:02am UTC](https://discourse.cakephp.org/t/session-renew-not-working/1119 "2016-09-07T07:02:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mister\_baldi](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@mister\_baldi](https://discourse.cakephp.org/u/mister_baldi)\
**Post date:** [September 7, 2016, 7:02am UTC](https://discourse.cakephp.org/t/session-renew-not-working/1119/1 "2016-09-07T07:02:26Z")

</div>

Good Morning together,

i have a problem in my written app.  
I used the latest cakephp 2.x version.  
My application runs in two tabs and in every tab runs a ajax / angularjs request to get json.  
After few minutes the application kills the session and the user has to logon again!  
here is my core.php

Configure::write(‘Session’, array(  
‘defaults’ =\> ‘database’,  
‘timeout’ =\> 30,  
‘cookieTimeout’ =\> 1440,  
‘checkAgent’ =\> false,  
‘autoRegenerate’ =\> true,  
));

Is this a known issue?  
Is there a fix ?

regards thomas
