Page 1 of 1
getting logged out
Posted: Fri Jan 30, 2009 7:28 pm
by Videx
After this most recent upgrade to 1.5.2, none of my editors can stay logged in long enough to do anything. Including myself. Seems like we have time to get in one quick change, then we're back at the login screen.
Anyone have a clue to a fix?
TIA
Re: getting logged out
Posted: Sat Feb 28, 2009 1:06 pm
by SusanN
I'm having this same exact problem. Anyone know of a fix yet?
Re: getting logged out
Posted: Sat Feb 28, 2009 3:39 pm
by Videx
We still haven't found a fix here. I've done everything on the client side I can think of - different browser, clearing the cache, deleting cookies. At first I thought deleting cookies helped, but eventually it started happening again.
I've been thinking of giving my host a login and asking them, but that would require me to sit and write a step by step for them and I've just been too lazy.
Re: getting logged out
Posted: Wed Mar 18, 2009 6:17 pm
by chuckienorton
ME TOO. I just came forum because it's KILLING me... I'll have a stylesheet I'm working on & then I click "Apply" and i loose everything because it asks me to log in again. I'd love to NEVER have to log back in from my computer.
I've used CMSMS for over 25 projects & never had this prob. Is it the newest update?
Thanks in advance!
Re: getting logged out
Posted: Wed Mar 18, 2009 6:36 pm
by Tbone
Re: getting logged out
Posted: Wed Mar 18, 2009 6:38 pm
by reneh
Please try 1.5.3 - since this release have added some more tweaks to try solve the auto log out problem.....
Re: getting logged out
Posted: Wed Mar 18, 2009 6:54 pm
by chuckienorton
Thanks for quick reply.
I'm using 1.5.3. Haven't had probs before.
Re: getting logged out
Posted: Wed Mar 18, 2009 7:07 pm
by chuckienorton
I checked and if I already have 1.5.3 this is same code, correct? Is it my personal host? Or can i adjust with php.ini?
Thanks!
Re: getting logged out
Posted: Wed Mar 18, 2009 7:32 pm
by Tbone
In 1.5.3 is this code:
Code: Select all
#Setup session with different id and start it
@session_name('CMSSESSID' . $session_key);
@ini_set('url_rewriter.tags', '');
@ini_set('session.use_trans_sid', 0);
if(!@session_id())
{
#Trans SID sucks also...
@ini_set('url_rewriter.tags', '');
@ini_set('session.use_trans_sid', 0);
@session_start();
if( isset($CMS_ADMIN_PAGE) )
{
if( !isset($_SESSION[CMS_USER_KEY]) )
{
// maybe change this algorithm.
$key = substr(str_shuffle(md5($dirname.time().session_id())),-8);
$_SESSION[CMS_USER_KEY] = $key;
}
}
}
an the changes are:
Code: Select all
#Setup session with different id and start it
@session_name('CMSSESSID' . $session_key);
if(!@session_id()) @session_start();
if( isset($CMS_ADMIN_PAGE) && ( !isset($_SESSION[CMS_USER_KEY]) ))
{
// maybe change this algorithm.
$key = substr(str_shuffle(md5($dirname.time().session_id())),-8);
$_SESSION[CMS_USER_KEY] = $key;
}
/**
this part from original
Code: Select all
if( isset($CMS_ADMIN_PAGE) )
{
if( !isset($_SESSION[CMS_USER_KEY]) )
{
// maybe change this algorithm.
$key = substr(str_shuffle(md5($dirname.time().session_id())),-8);
$_SESSION[CMS_USER_KEY] = $key;
}
}
can start only once. if you visit the page site at first and than you make a login it has no function.
Re: getting logged out
Posted: Wed Mar 18, 2009 10:02 pm
by Videx
I finally asked my host about it. They dropped a huge (38k) php.ini file in my folder that seems to have solved the problem. Though honestly I haven't had to do a lot of editing since then, and I really have no idea what in that huge file may have solved the problem.