Logout time

12 posts by 5 authors in: Forums > CMS Builder
Last Post: April 26, 2011   (RSS)

By matrix - February 27, 2008

Is there a way to limit time for login? Thinking about staff who work on updates for a bit, step away from the desk for a few hours, only to come back to find the owner's 10-year-old has had a good time updating the business site. [;)] (Not a real example, but you get it.)

Thank you.

PS: I love this thing!!! Can now see why you were so excited about getting CMS Builder out and working. Extremely flexible. Once I got over the idea that it was simply a different version of ArtMan, the learning curve dropped and I found myself appreciating the beauty of the concept in unanticipated applications. Beautiful!
Happy Interactive Tools product user since 1999

Re: [matrix] Logout time

By Dave - February 27, 2008

Hi Matrix,

There's no feature for that, but I'm sure we could figure something out. I can put this on the feature request list for future versions and/or give you some code to modify your current version.

If you don't mind modifying the code we could try:

1) We could put a meta refresh tag in /lib/menus/header.php to auto refresh to the logoff url (?action=logoff) after x seconds.

2) Updating the setcookie code to expire the cookie after x seconds.

The only risk to it is Either way if the client leaves an edit page open with unsaved changes for longer than the timeout period they may lose them as the browser logs them off.

Would either of those solutions work for you?

PS: Thanks for the kudos! That's a great quote, would it be ok if we added it our quotes page? (or you could write something else if you wanted). http://www.interactivetools.com/products/cmsbuilder/#reviews

Thanks! Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Logout time

By matrix - February 27, 2008

Sounds like either would work. Thanks.

I'll need to think about this more. Overall, I think the protection of the update area may be more important than remaining logged in indefinitely, however it probably makes sense just to confirm preferences with the client.

Please feel free to use the quote. It's sincerely meant.

Thanks so much.
Happy Interactive Tools product user since 1999

Re: [matrix] Logout time

By Dave - February 27, 2008

Ok, well here's a simple way to do it. Edit this file: /lib/menus/header.php and add this in the header:

<meta http-equiv="refresh" content="600;url=?action=logoff"/>

After 600 seconds (10 minutes) it will auto refresh and log the user off.

Do you think that will work for them?
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Logout time

By pod9 - February 15, 2011

hi, cmsb seems to log users out after a certain amount of time. how do i increase this time?
Pod9

Re: [pod9] Logout time

By Jason - February 15, 2011

Hi,

Try this post:
http://www.interactivetools.com/forum/gforum.cgi?post=83641#83641

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: [pod9] Logout time

By Jason - February 15, 2011

Hi,

Some servers do not allow us to extend session time through code.

If you go into the General Settings section of CMS Builder. Under "Server Information", click on "phpinfo". This will bring up a page that shows current server settings. Search for "session". Under that section you should see a line that looks something like this:
"session.cookie_lifetime". It should give you a value in seconds under the "Local Value" column.

You may also want to contact your hosting provider about extending session times.

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] Logout time

By pod9 - February 15, 2011

The local value is 86400. If that's seconds then it's 24hrs but it seems to be more like 10-20mins?
Pod9

Re: [pod9] Logout time

By Jason - February 16, 2011

Hi,

Does it seems to happen every time you're inactive for 20 minutes, or is it only sometimes?

You may want to contact your hosting service to find out if there's anything on their end that affects sessions times.

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/