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?
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?
I believe I found some info, could it be the php.ini file I have to fix?
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
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!!!
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
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
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
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
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
set_time_limit(0)
ini_set('session.cookie_lifetime',0);
ini_set('session.gc_maxlifetime',1440);
?>
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)]
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.