If you have configured php to run as CGI or FastCGI or SUPHP then you might want to place local php.ini file in site root folder
and increase the session life time.
Ok i found a few other placed where the number is set to 3600 hopefully increasing these will solve the issue that all the worked by us have been complaining about…
/code/core/Mage/Core/Model/Cookie.php $lifetime = 3600; increased this one..
./code/core/Mage/Core/etc/config.xml <cookie_lifetime>3600</cookie_lifetime> I increased this one as well
I don’t have a CEv1.3 installation currently to verify, but in CEv1.4 and above, just go to ADMIN: System> Configuration> Admin tab. In the Security panel, you can set the “Session Lifetime” to something higher. By default, I believe it’s set to something like 15 minutes (900 seconds). Just set it to something comfortably high (in seconds) so that the Admin Panel doesn’t time out on you during development. Then dial it back down when you move the site into production.
I don’t recall when this feature became available and it may or may not be an option in v1.3, but check just in case.
This helped me, but I want to share one experience. Even though I set this configuration value it did not make any change. The problem was that the admin has to run as
$mageRunCode = ‘admin’;
$mageRunType = ‘store’;
Set this in index.php for example like this:
if ( preg_match(’/’.$baseUrl.’admin/’, $url) or preg_match(’/’.$baseUrl.’index.php\/admin/’, $url) )
{
$mageRunCode = ‘admin’;
$mageRunType = ‘store’;
}
where $url is current url and $base url is escaped base url (escaped slashes and dots) otherwise it won’t work.
igloo-x - 06 May 2009 07:00 AM
admin panel:
system -> advanced -> admin -> security
Enter value for: “Session Lifetime, Seconds”
I haven’t tested this yet,
but it should produce the desired results according to the following code in: app\code\core\Mage\Core\Model\Session\Abstract\Varien.php
if (Mage::app()->getStore()->isAdmin()) {
$adminSessionLifetime = (int)Mage::getStoreConfig(’admin/security/session_cookie_lifetime’);
if ($adminSessionLifetime > 60) {
Mage::getSingleton(’core/cookie’)->setLifetime($adminSessionLifetime);
}
}
I am looking to change the timeout for only one particular admin user. Is that possible? We have a computer at our shop in a secure location that we basically want logged in all the time. However I don’t want admins who login remotely to have a long time out. Any suggestions?
This is great. So many solutions, so many suggestions. Nothing works for sure. Nobody knows for sure. Reverse engineering everywhere…
What the ...?!
According to post #13 there is the function getLifeTime in Mage/Core/Model/Mysql4/Session.php, correction: Mage/Core/Model/Mysql4/Ressource/Session.php (the same php-file in the folder above is empty).
in function getLifeTime I placed the following:
print ini_get(session.gc_maxlifetime); exit;
I have tried logging in and out and never experienced Magento\’s white-screen with the output. It is as if the function is not used at all in my case. In my configuration sessions are saved in the file system. I have emptied the folder and tried again - no white screen!
So, what are the two backend settings for in General > Web and Advanced > Admin?