# Allow session forever

**URL:** <https://community.dreamfactory.com/t/allow-session-forever/4444>\
**Category:** App Configuration\
**Created:** [June 2, 2018, 12:07pm UTC](https://community.dreamfactory.com/t/allow-session-forever/4444 "2018-06-02T12:07:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Praveen\_BM\_Reddy](https://avatars.discourse-cdn.com/v4/letter/p/848f3c/32.png) [@Praveen\_BM\_Reddy](https://community.dreamfactory.com/u/Praveen_BM_Reddy)\
**Post date:** [June 2, 2018, 12:07pm UTC](https://community.dreamfactory.com/t/allow-session-forever/4444/1 "2018-06-02T12:07:47Z")

</div>

Hi

As per the instruction in other topic i have set the “ALLOW\_FOREVER\_SESSION” to true and then run the “php artisan config:clear” and php artisan cache:clear command as well as also cleared the system wide cache from the admin . After that when i tried to print the environment using the “http://{my-host}/api/v2/system/environment” is still showing false. HELP

 ![df%20env%20conf](https://canada1.discourse-cdn.com/flex035/uploads/dreamfactory/original/2X/4/4a5176a92fb1bd668f9dd634d870ca6f4b052f31.PNG) ![df%20syst](https://canada1.discourse-cdn.com/flex035/uploads/dreamfactory/original/2X/a/ac2d100cf41505367aad84f149aa3872eece71f7.PNG)

---

<div class="post-metadata">

**Author:** ![Erik\_Jacobsen](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/erik_jacobsen/32/1132_2.png) [@Erik\_Jacobsen](https://community.dreamfactory.com/u/Erik_Jacobsen)\
**Post date:** [June 2, 2018, 1:39pm UTC](https://community.dreamfactory.com/t/allow-session-forever/4444/2 "2018-06-02T13:39:53Z")

</div>

Hi @Praveen_BM_Reddy,

Make sure you uncomment the variable by deleting the # in front of it. Then save the .env file and clear your config with `php artisan config:clear`.

---

<div class="post-metadata">

**Author:** ![Praveen\_BM\_Reddy](https://avatars.discourse-cdn.com/v4/letter/p/848f3c/32.png) [@Praveen\_BM\_Reddy](https://community.dreamfactory.com/u/Praveen_BM_Reddy)\
**Post date:** [June 2, 2018, 4:24pm UTC](https://community.dreamfactory.com/t/allow-session-forever/4444/3 "2018-06-02T16:24:58Z")

</div>

Hi @Erik_Jacobsen.  
Thanx for the suggestion it worked.

---

<div class="post-metadata">

**Author:** ![Erik\_Jacobsen](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/erik_jacobsen/32/1132_2.png) [@Erik\_Jacobsen](https://community.dreamfactory.com/u/Erik_Jacobsen)\
**Post date:** [June 3, 2018, 2:49pm UTC](https://community.dreamfactory.com/t/allow-session-forever/4444/4 "2018-06-03T14:49:04Z")

</div>

Awesome! So glad you got it working!
