getting logged out

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Videx
Forum Members
Forum Members
Posts: 15
Joined: Wed Sep 10, 2008 2:58 am

getting logged out

Post 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
User avatar
SusanN
Forum Members
Forum Members
Posts: 192
Joined: Wed Jun 13, 2007 5:57 pm
Location: Ohio, USA

Re: getting logged out

Post by SusanN »

I'm having this same exact problem.  Anyone know of a fix yet?
Videx
Forum Members
Forum Members
Posts: 15
Joined: Wed Sep 10, 2008 2:58 am

Re: getting logged out

Post 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.
User avatar
chuckienorton
Forum Members
Forum Members
Posts: 68
Joined: Wed Feb 14, 2007 6:58 pm
Location: Pasadena, California

Re: getting logged out

Post 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!
Tbone
New Member
New Member
Posts: 7
Joined: Tue Mar 17, 2009 11:47 am

Re: getting logged out

Post by Tbone »

reneh
Dev Team Member
Dev Team Member
Posts: 446
Joined: Tue Nov 28, 2006 8:39 pm
Location: Norway

Re: getting logged out

Post by reneh »

Please try 1.5.3 - since this release have added some more tweaks to try solve the auto log out problem.....
ReneH 8-)
A search will save you hours waiting for an answer! Image
User avatar
chuckienorton
Forum Members
Forum Members
Posts: 68
Joined: Wed Feb 14, 2007 6:58 pm
Location: Pasadena, California

Re: getting logged out

Post by chuckienorton »

Thanks for quick reply.

I'm using 1.5.3. Haven't had probs before.
User avatar
chuckienorton
Forum Members
Forum Members
Posts: 68
Joined: Wed Feb 14, 2007 6:58 pm
Location: Pasadena, California

Re: getting logged out

Post 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!
Tbone
New Member
New Member
Posts: 7
Joined: Tue Mar 17, 2009 11:47 am

Re: getting logged out

Post 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.
Videx
Forum Members
Forum Members
Posts: 15
Joined: Wed Sep 10, 2008 2:58 am

Re: getting logged out

Post 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.
Post Reply

Return to “CMSMS Core”