Heroku - Session expires or gets deleted on every commit

Author - Webner
16.10.2015
|
0 Comments
||

Session expires or gets deleted on every commit in Heroku

Follow these steps to fix this problem:

1. Install MemCachier addon in your heroku app

2. Create .user.ini file in your Heroku app and write following code in the file:

 session.save_handler=memcached
 session.save_path="PERSISTENT=your_app_name_session ${MEMCACHIER_SERVERS}"
 memcached.sess_binary=1
 memcached.sess_sasl_username=${MEMCACHIER_USERNAME}
 memcached.sess_sasl_password=${MEMCACHIER_PASSWORD}

3. Commit .user.ini file to your Heroku app

Webner Solutions is a Software Development company focused on developing CRM apps (Salesforce, Zoho), LMS Apps (Moodle/Totara), Websites and Mobile apps. If you need Salesforce customization, App development or any other software development assistance please contact us at salesforce@webners.com

Webner Solutions is a Software Development company focused on developing Insurance Agency Management Systems, Learning Management Systems and Salesforce apps. Contact us at dev@webners.com for your Insurance, eLearning and Salesforce applications.

Leave a Reply

Your email address will not be published.