# How to increase cakephp session time

**URL:** https://discourse.cakephp.org/t/how-to-increase-cakephp-session-time/596
**Category:** Uncategorized
**Created:** [June 21, 2016, 5:22pm UTC](https://discourse.cakephp.org/t/how-to-increase-cakephp-session-time/596 "2016-06-21T17:22:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kailash](https://avatars.discourse-cdn.com/v4/letter/k/2bfe46/32.png) [@kailash](https://discourse.cakephp.org/u/kailash)
#### Post date: [June 21, 2016, 5:22pm UTC](https://discourse.cakephp.org/t/how-to-increase-cakephp-session-time/596/1 "2016-06-21T17:22:07Z")

</div>

how to increase cakephp session time if using lamp

---

<div class="post-metadata">

### Author: ![jeremyharris](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/jeremyharris/32/66_2.png) [@jeremyharris](https://discourse.cakephp.org/u/jeremyharris)
#### Post date: [June 21, 2016, 6:55pm UTC](https://discourse.cakephp.org/t/how-to-increase-cakephp-session-time/596/2 "2016-06-21T18:55:01Z")

</div>

Please read this section of the documentation in full, it explains it all: [http://book.cakephp.org/3.0/en/development/sessions.html#session-configuration](http://book.cakephp.org/3.0/en/development/sessions.html#session-configuration)

Increasing `Session.timeout` and `session.cookie_lifetime` in the `ini` section are likely what you’re looking for.

---

<div class="post-metadata">

### Author: ![kailash](https://avatars.discourse-cdn.com/v4/letter/k/2bfe46/32.png) [@kailash](https://discourse.cakephp.org/u/kailash)
#### Post date: [May 17, 2017, 12:47pm UTC](https://discourse.cakephp.org/t/how-to-increase-cakephp-session-time/596/3 "2017-05-17T12:47:17Z")

</div>

Simple add new file with name .user.ini in app webroot folder(app/webroot/.user.ini) with content  
session.gc\_maxlifetime=8600
