Session Expired - Administrator login loop

Joomla version 1.5 is end-of-life and are no longer supported. Please use Joomla 3.x instead.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
wargsm
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Mon Mar 08, 2010 1:35 pm

Session Expired - Administrator login loop

Post by wargsm » Tue May 25, 2010 4:05 am

Backup up a working Joomla database, and uploaded to a new host. The frontend works fine, however I am unable to log in to the backend.

If I clear out my cache/cookies, then the first login says 'Session Expired', after that, every login attempt just loops back to the login box. No errors, just looping over and over again.

Found many others with this error, but no fixes seem to solve it. Desperate for help on this.

Thanks

 
wargsm
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Mon Mar 08, 2010 1:35 pm

Re: Session Expired - Administrator login loop

Post by wargsm » Tue May 25, 2010 7:47 am

I have just made a completely clean install of Joomla on the webserver, and it is still failing. The site has to go live today and I cannot get into the Administrators panel...clients are screaming at me for this one.

The clean install of Joomla failed twice, frontend fine, backend 'Session expired' and then logins just loop.
Importing from a working database also fails.

I literally have no idea what to do now. The only thing I can possibly think of, is that there's a problem with the php.ini file, as this is the only file that Joomla doesn't modify.

Any ideas?

Pumice
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sat Nov 19, 2005 8:54 am

Re: Session Expired - Administrator login loop

Post by Pumice » Wed May 26, 2010 9:19 pm

I've just upgraded two of my sites from 1.5.14 to 1.5.17 (yes, I know, I should have upgraded sooner!) and now I can't log in as Administrator. Same issue - just ignores the (pre-upgrade) valid Admin user ID and password and loops back to a blank admin login screen

User avatar
dpacadmin
Joomla! Champion
Joomla! Champion
Posts: 6029
Joined: Sat Aug 16, 2008 1:46 pm
Location: the Bat Cave
Contact:

Re: Session Expired - Administrator login loop

Post by dpacadmin » Wed May 26, 2010 9:38 pm

@ Pumice
Download the full file set for 1.5.17 and upload the administrator folder to your site. Check your FTP log to be sure all files are uploaded and that they overwrote the old files.

Pumice
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sat Nov 19, 2005 8:54 am

Re: Session Expired - Administrator login loop

Post by Pumice » Wed May 26, 2010 11:02 pm

Thanks for that suggestion. Unfortunately I've tried it, and it doesn't seem to make any difference.

jimg
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Aug 14, 2007 6:46 pm

Re: Session Expired - Administrator login loop

Post by jimg » Wed Jun 02, 2010 6:45 pm

Same issue: upgraded from 1.5.17 to .18 - login is being accepted, and redirecting to index.php... but after the redirect, J! doesn't recognize that the login succeeded, so it carries out its default action, which is to display the login screen.

User avatar
dpacadmin
Joomla! Champion
Joomla! Champion
Posts: 6029
Joined: Sat Aug 16, 2008 1:46 pm
Location: the Bat Cave
Contact:

Re: Session Expired - Administrator login loop

Post by dpacadmin » Wed Jun 02, 2010 8:20 pm

Run the Post Assistant on your site and see what it finds.

jimg
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Aug 14, 2007 6:46 pm

Re: Session Expired - Administrator login loop

Post by jimg » Wed Jun 02, 2010 8:59 pm

[quote="JTS-post Problem Description"]cannot access admin panel - login loops[/quote]
JTS-post Diagnostic Information wrote:Joomla! Version: Joomla! 1.5.18 Stable [ wojmamni ama wojnaiki ] 27-May-2010 18:00 GMT
configuration.php: Not Writable (Mode: 444 ) | Architecture/Platform: Linux 2.6.18-028stab064.7-ent ( i686) | Web Server: Apache/2.0.52 (CentOS) | PHP Version: 5.2.0
PHP Requirements: register_globals: Disabled | magic_quotes_gpc: Disabled | safe_mode: Disabled | MySQL Support: Yes | XML Support: Yes | zlib Support: Yes
mbstring Support (1.5 or above): Yes | iconv Support (1.5 or above): Yes | save.session_path: Writable | Max.Execution Time: 30 seconds | File Uploads: Enabled
MySQL Version: 5.0.45-community ( Localhost via UNIX socket )
JTS-post Extended Information wrote:SEF: Enabled (with ReWrite) | Legacy Mode: Disabled | FTP Layer: Disabled | htaccess: Implemented
PHP/suExec: User and Web Server accounts are not the same. (PHP/suExec probably not installed)
PHP Environment: API: apache2handler | MySQLi: Yes | Max. Memory: 13M | Max. Upload Size: 2M | Max. Post Size: 8M | Max. Input Time: 60 | Zend Version: 2.2.0
Disabled Functions: readfile,shell_exec,exec,passthru,proc_close,proc_get_status,proc_open,proc_terminate,system
MySQL Client: 5.0.45 ( latin1 )

User avatar
dpacadmin
Joomla! Champion
Joomla! Champion
Posts: 6029
Joined: Sat Aug 16, 2008 1:46 pm
Location: the Bat Cave
Contact:

Re: Session Expired - Administrator login loop

Post by dpacadmin » Wed Jun 02, 2010 9:12 pm

Your save session path is writable so that is not the problem. Have you tried uploading the administrator folder again from the same version of Joomla as you are using? Check your FTP log to be sure all files upload and that the old files are overwritten. You can turn debug on in the configuration.php file, just set it to 1 , that may give some info why it will not login. If your site is live you should set it offline first, this can also be done in the config file by setting offline to 1 .

jimg
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Aug 14, 2007 6:46 pm

Re: Session Expired - Administrator login loop

Post by jimg » Wed Jun 02, 2010 9:31 pm

Joomla 1.5.18 (complete version) has been installed twice, overwriting all existing files. The entire package was pulled directly from joomla.org using wget. No reliance on FTP.

Of interest - I have a staging version of same site (.15) running on the server w/o issue.

And yes, we enabled debug - nothing immediately jumps out - except the fact that .15 has one additional query mid-stream:

Code: Select all

SELECT value
  FROM jos_sef_sm_settings
  WHERE variable='ping_timeout'
If you'd like the site URL(s) PM me.

User avatar
dpacadmin
Joomla! Champion
Joomla! Champion
Posts: 6029
Joined: Sat Aug 16, 2008 1:46 pm
Location: the Bat Cave
Contact:

Re: Session Expired - Administrator login loop

Post by dpacadmin » Wed Jun 02, 2010 10:05 pm

Have you tried the session fork fix
http://forum.joomla.org/viewtopic.php?p ... 3#p2160233
Line 533

More people with the problem here
http://forum.joomla.org/viewtopic.php?p ... 3#p2160233
Some with JFusion thinking it may be a part of the problem. Are you using any login extension besides the default Joomla one?

Someone else using php 5.2.0 with the same problem, maybe 5.2.0 is the problem
http://forum.joomla.org/viewtopic.php?p ... 1#p2139941

Something else to consider
http://docs.joomla.org/Why_are_my_plugi ... _disabling

Someone found that making sure User_Joomla! plugin is enabled fixed it
http://forum.joomla.org/viewtopic.php?p ... 0#p2141410

Some found that session handler was not set to database in their configuration.php file
var $session_handler = 'database';

jimg
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Aug 14, 2007 6:46 pm

Re: Session Expired - Administrator login loop

Post by jimg » Wed Jun 02, 2010 10:18 pm

Commented out line 533 in /libraries/joomla/application/application.php.

Code: Select all

// $session->fork();
that did the trick.

Thank you so much for your assistance!

Pumice
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sat Nov 19, 2005 8:54 am

Re: Session Expired - Administrator login loop

Post by Pumice » Wed Jun 02, 2010 11:01 pm

jimg wrote:Commented out line 533 in /libraries/joomla/application/application.php.

Code: Select all

// $session->fork();
that did the trick.

Thank you so much for your assistance!
Yes, that works for me too. Thank you. :)

jimg
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Aug 14, 2007 6:46 pm

Re: Session Expired - Administrator login loop

Post by jimg » Thu Jun 03, 2010 5:00 pm

addendum - if you feel that disabling the fork function isn't acceptable, you can change the fork function to work properly.

replace fork function in /libraries/joomla/session/session.php - ( hint: .18 lines 504-545) with the following:

Code: Select all

function fork()
 {
  if ('active' == $this->_state) {
   $this->_store->destroy($this->getId());
   // restart session with new id
   session_regenerate_id();
  }
 }
Works on my php 5.2.0 and php 5.2.6 sites. Your results may vary.

More detailed post on info can be found here:
http://php-ace.com/blog/2010/06/128007/

Thanks goes to Martin Brampton (Remository Developer) for researching the problem and suggesting the fix.

wooly
Joomla! Intern
Joomla! Intern
Posts: 63
Joined: Mon Aug 29, 2005 6:54 pm

Re: Session Expired - Administrator login loop

Post by wooly » Tue Jul 06, 2010 10:55 am

Hi
this looks like it will solve my login problem-
just to be sure - can you tell me which exact lines I am to remove/replace in the original code?
Thanks for your work on this
W

Per58
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Feb 17, 2009 9:38 am

Re: Session Expired - Administrator login loop

Post by Per58 » Tue Jul 20, 2010 7:10 am

replace fork function in /libraries/joomla/session/session.php - ( hint: .18 lines 504-545) with the following:

Code: Select all

function fork()
{
  if ('active' == $this->_state) {
   $this->_store->destroy($this->getId());
   // restart session with new id
   session_regenerate_id();
  }
}
Not working for me in
PHP 5.2.0 MySQL 5.0.15-max apache 1.4.41

sciarrino
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Mar 17, 2010 8:08 am

Re: Session Expired - Administrator login loop

Post by sciarrino » Tue Jul 20, 2010 10:41 am

Have you tried setting memory to 32M in PHP.INI ?

It helped last website, but not the one I'm working today....

SVault
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Tue Sep 01, 2009 9:20 pm

Re: Session Expired - Administrator login loop

Post by SVault » Thu Sep 02, 2010 11:57 pm

I just had this problem.

1) To solve it, I went into the folder via FTP.
2) Downloaded "configuration.php"
3) Edited "Lifetime Session" to 15. (Previously, I had it at 9999999)

Went back and it logged in fine. Hope this helps someone.

akwaba
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Nov 04, 2010 7:00 pm

Re: Session Expired - Administrator login loop

Post by akwaba » Thu Nov 04, 2010 7:09 pm

jimg wrote:addendum - if you feel that disabling the fork function isn't acceptable, you can change the fork function to work properly.

replace fork function in /libraries/joomla/session/session.php - ( hint: .18 lines 504-545) with the following:

Code: Select all

function fork()
 {
  if ('active' == $this->_state) {
   $this->_store->destroy($this->getId());
   // restart session with new id
   session_regenerate_id();
  }
 }
Works on my php 5.2.0 and php 5.2.6 sites. Your results may vary.

More detailed post on info can be found here:
http://php-ace.com/blog/2010/06/128007/

Thanks goes to Martin Brampton (Remository Developer) for researching the problem and suggesting the fix.
It works for me (Joomla 1.5.21 - PHP 5.2.0)
Thanks guys

SiBee
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Nov 15, 2010 3:39 am

Re: Session Expired - Administrator login loop

Post by SiBee » Wed Nov 17, 2010 11:44 am

There doesn't seem to be a $session->fork(); in my application.php file, might it be located somewhere else? I'm using Joomla_1.5.15-Stable-Full_Package and PHP 5.2.9

User avatar
dpacadmin
Joomla! Champion
Joomla! Champion
Posts: 6029
Joined: Sat Aug 16, 2008 1:46 pm
Location: the Bat Cave
Contact:

Re: Session Expired - Administrator login loop

Post by dpacadmin » Wed Nov 17, 2010 11:09 pm

I believe the "$session->fork();" was added in 1.5.16 as the problems started after upgrading from version 1.5.15. If you can not login it could be a file missing or corrupt or a database problem, could also be your site was hacked but typically you would have seen other evidence.

First check that you have the correct login name and password, I've done that before, mixed up sites and logins. Try deleting your browser's temp Internet files and any cookies from your site. Try increasing your session lifetime setting in the configuration.php file. Make sure session handler is set to database.

Code: Select all

	/* Session settings */
	var $lifetime = '15';					// Session time
	var $session_handler = 'database';
Try uploading the administrator folder from the full file set for the version of Joomla you are using, 1.5.15, the file links are here;
http://docs.joomla.org/Joomla_1.5_versi ... .21_1.5.15

Try adding a new Super Admin user and password using phpMyAdmin

Have a look through these other posts to see if anything mentioned helps
http://forum.joomla.org/viewtopic.php?f=430&t=520866
http://forum.joomla.org/viewtopic.php?f=430&t=511767

SiBee
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Nov 15, 2010 3:39 am

Re: Session Expired - Administrator login loop

Post by SiBee » Thu Nov 18, 2010 10:18 am

There seems to be a glimmer of hope with adding a new super administrator via the PHPMyAdmin except, it says invalid username or password when i try to log in with the new user detail.

Looking at the other users registered to my site, there passwords are strings of letters and numbers: 28455c87020e1efe3ec3afb9c02d343 where as the one i've created is just written as my password. Do i need to put my password through some sort of coding process?

User avatar
dpacadmin
Joomla! Champion
Joomla! Champion
Posts: 6029
Joined: Sat Aug 16, 2008 1:46 pm
Location: the Bat Cave
Contact:

Re: Session Expired - Administrator login loop

Post by dpacadmin » Thu Nov 18, 2010 11:06 am

At the bottom of this page are links for creating a MD5 hashed password for Joomla, Joomla does not store its passwords as they are, instead they are stored as a MD5 hash of the original.
http://docs.joomla.org/How_you_reset_an ... assword%3F

SiBee
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Nov 15, 2010 3:39 am

Re: Session Expired - Administrator login loop

Post by SiBee » Thu Nov 18, 2010 11:59 am

(SOLVED)
(Big sigh of relief)
Thanks very much for your help. Life can return to normal again.

TripG
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Jan 13, 2009 2:52 pm

Re: Session Expired - Administrator login loop

Post by TripG » Mon Oct 24, 2011 2:58 pm

Spent a couple hours with same issue as orginally described.

Scenario:
Copy site and database from live site to development server

Afterwards can not login and stuck in loop where token wont validate.

Fix:

Change $cookie_domain in configuration.php to match ip address of dev server.

Basically wasn't setting cookie because domain didn't match so this var need to match either your new server domain name or ip address after moving. This was a 1.6 site.

Thank you

Trip-g

tdbask
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed Dec 07, 2011 3:18 am

Re: Session Expired - Administrator login loop

Post by tdbask » Wed Dec 07, 2011 3:28 am

I have tried all of the suggestions, config.php, application.php, database repair, session table empty/delete and rebuild, repair all of the tables, changed passwords(copied from other working site).... and still get either page not found or a loop back to the login screen. last login was 11-22-11. Only known activity since then was AWSTAT installation on 11/28/11 which was done via the hosting CPanel. AWSTAT has since been removed. Is it possible AWSTAT did something.. I have checked all of the files I can reference for admin and config and cannot find any of them changed. They are either dated with the created version or the installed date.
I'm open to suggestions.

tdbask
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed Dec 07, 2011 3:18 am

Re: Session Expired - Administrator login loop

Post by tdbask » Wed Dec 14, 2011 2:22 am

After trying all of the suggestions I found listed in the forums (26 of them to be exact) I found a reference to a "plugin" issue. One of the suggestions was to reload the "plugin" directory. I had previously scanned for all files and folders but after reloading the plugin directory access was now working to the backend, So this is just another "something to try" as a resolution to the administrator access issue..

Vltravioletest
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Jul 02, 2013 5:07 pm

Re: Session Expired - Administrator login loop

Post by Vltravioletest » Tue Jul 02, 2013 5:15 pm

Thnsk a lot, one of your posted links solved my problem!

sick_of_joomla
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Feb 21, 2014 12:32 pm

Re: Session Expired - Administrator login loop

Post by sick_of_joomla » Fri Feb 21, 2014 12:59 pm

what it is incredible is that joomla hasn't been able to solve this in 6 years, moving a site from server to server is so basic development operation.....shame on you

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 22448
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Session Expired - Administrator login loop

Post by pe7er » Fri Feb 21, 2014 1:37 pm

sick_of_joomla wrote:what it is incredible is that joomla hasn't been able to solve this in 6 years, moving a site from server to server is so basic development operation.....shame on you
There haven't been any updates for Joomla 1.5 for the last one and a half year because Joomla 1.5 is end-of-life since September 2012!

Do you have the same problems with the current versions (Joomla 2.5 & 3.2) ?
I have not had many problems with moving a site from one server to another.
And the couple of times had problems with moving a site, those issues were server configuration related.
Kind Regards,
Peter Martin, Global Moderator
https://db8.nl - Joomla specialist, Nijmegen, Nederland
Co-developer of d2 Content https://data2site.com/joomla-extensions/d2-content

 

Locked

Return to “Migrating and Upgrading to Joomla! 1.5”