membership session time for password protected pages

By 4cdg - August 12, 2010

I have read and successfully changed the session time on the cms login.

I need to set a session time on the webpages that users log into to view protected content. If they don't logout I want it to force them out after 10 - 15 minutes of inactivity

Is there an easy way to do this with membership plugin or is there some other code or software that can easily make this happen?

Re: [4cdg] membership session time for password protected pages

By Jason - August 12, 2010

Hi,

Both CMS Builder login and the Website memebership plugin use the same session variable. Whatever session time you set in CMS Builder will also affect the session time for people logging in through the membership plugin.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] membership session time for password protected pages

By 4cdg - August 12, 2010

it is not working for me. I log into a page and don't do anything for about an hour, then when I click a link i can still go to the information.

here is what is in my init.php file

// Initialize session
session_name($SETTINGS['cookiePrefix'] . 'PHPSESSID'); // sets session.name
ini_set('session.use_cookies', true );
ini_set('session.use_only_cookies', true );
ini_set('session.cookie_path', '/' );
ini_set('session.cookie_httponly', true );
ini_set('session.cookie_lifetime', 0 ); // cookies are removed after this many seconds of inactiity
ini_set('session.gc_maxlifetime', 60 ); // sessions are removed after this many seconds of inactiity
ini_set('session.use_trans_sid', false );
session_start() or die("Couldn't start session! '$php_errormsg'!");
what have i done wrong??

Re: [4cdg] membership session time for password protected pages

By 4cdg - August 16, 2010

anything