close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Timing out!

Thread began 12/14/2009 9:51 am by Jackie340426 | Last modified 9/13/2010 12:30 pm by Martin | 2058 views | 19 replies |

Jackie340426

Timing out!

Hi,

I am having an issue with the CMS ...

While you are making changes it seems to timeout after a short amount of time.
Then your changes are lost?

How to fix?

Sign in to reply to this post

Jackie340426

php.ini

I believe I found some info, could it be the php.ini file I have to fix?

Sign in to reply to this post

Justin Nemeth

What exactly are you doing that is causing the timeout? Uploading an image? You can try adding set_time_limit(0) to the top of the page that is timing out. More info at set_time_limit.

-justin

Sign in to reply to this post

Jackie340426

timing out

I was inside the CMS, updating content. I went to hit save and as soon as I hit save it went back into the login screen and I lost my changes.

This web site is for a client and she said the same thing happens are her end too.
She loses her changes after a 6 minutes (I timed it). I am looking to increase the time out period, if possible.

Thanks for your help on this!!!

Sign in to reply to this post

Martin

This might be quite late for a reply. But I have recently experienced the same issue as the server session times out prematurely.

I think I have solved this by adding this piece of code to the top of all the Admin PHP pages.

<?php
$time_set = 2*60*60; // 2hrs
session_start();
?>

This give a 2 hour session before it times out and renews on any activity!

I hope this helps even though it is waaaayyy late!

Cheers,
Martin

Sign in to reply to this post

Martin

Hmm, I don't think this has worked.

So I am going to ask the web assist guys, how do you extend the default login session length for power cms?

Thanks,
Martin

Sign in to reply to this post

Jason ByrnesWebAssist

session timeout is controlled by a few settings in the php.ini file.

See the following thread on the webmasterworld.com forums for details:
12812.htm

Sign in to reply to this post

Martin

Hi Jason,

Thanks for getting back to me on this one. However, the php.ini file is not something I have access to on the server.

How do you override the settings and create your own session length?

I thought the code I posted earlier was what I needed but when I was kicked out after less than 30 minutes, I realized the session length was not being set.

Thanks,
Martin

Sign in to reply to this post

Jason ByrnesWebAssist

you should be able to change the setting using ini_set. don't forget to include the set time limit function as Justin suggested also:

php:
<?php

set_time_limit
(0)
ini_set('session.cookie_lifetime',0);
ini_set('session.gc_maxlifetime',1440);
?>
Sign in to reply to this post

neilo

Hi Jason,

Thanks for the info on this. Would the code need to go at the the beginning of just the log-in page (where the session starts) or would it need to go in all pages that reference the cookie? (It seems that the standard php session gc_maxlifetime is 24 minutes (1440)]

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...