Created
March 22, 2017 18:07
-
-
Save Pebblo/ee5b686c56fef27dbccb08602821e582 to your computer and use it in GitHub Desktop.
Example of how to change EE default session lifespan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#<?php //Please do not include the opening PHP tag if you already have one | |
function tw_ee_session_lifespan() { | |
return 120 * MINUTE_IN_SECONDS; | |
} | |
add_filter( 'FHEE__EE_Session__construct___lifespan', 'tw_ee_session_lifespan' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment