Custom Session Duration

Article author
Duncan Hamra
  • Updated

By default, the session duration is 3 days. You can lengthen or shorten that to whatever you like. 

Add the following code to the header script of every page, or each page with a signup form. 

The ms_session_duration_days accepts decimals. Use this handy tool to convert minutes or hours to days. 


<!--Session Duration-->
<script> ms_session_duration_days = 14 //days </script>

Keywords: session cookies, extend session, 

Was this article helpful?



Please sign in to leave a comment.