Support

Admin Tools

#11785 updating Joomla to joomla 1.5.26:- Session Expired Error

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Sunday, 01 April 2012 14:10 CDT

Kakkaji
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? yes
Have I searched the tickets before posting? yes
Have I read the documentation before posting (which pages?)? yes
Joomla! version: (1.5.26)
PHP version: (PHP 5.2)
MySQL version: (unknown)
Host: (optional, but it helps us help you)
Admin Tools version: (2.2.2)

Description of my issue:

I Can't login as Administrator after updating to joomla 1.5.26 through Admn PRO Tool. It always shows " Your session has expired. Please log in again." I changed admintool.php.bak, still problem persists. Repaired, optimised, emptied session table but no result.. Pls help..

nicholas
Akeeba Staff
Manager
Try the following:
- Clear your browser's cache and its cookies cache
- Quit your browser
- Reopen your browser
- Empty the contents of your site's jos_session table (where jos_ must be replaced with your site's database table name prefix, which might be different than jos_. It's easy to spot it, just look at the common prefix in all tables' names). EXTREMELY IMPORTANT! DO NOT DROP (DELETE) THE TABLE! We need you to empty its contents, an operation which is usually called "Truncate" in most database administration tools.
- Retry logging in

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Kakkaji
it worked for few seconds, I could login to back end, but when I tried to uninstall this component, it went back again to Login Page, showing login page again and again with the message " Your session has expired. Please log in again." Can't login to back end !! Any Help? thanks

nicholas
Akeeba Staff
Manager
Well, the problem is not with Admin Tools. Renaming the plugin's file causes the plugin to no longer execute, therefore there is no Admin Tools' code executing in the back-end (or the front-end) of your site. This sounds like a problem with your site or a third party plugin. Following the method outlined above you can re-login to your site, set the session expiration time in Global Configuration to something really big (2000 minutes are plenty!) and then try disabling system plugins to see which one may cause this issue.

If you don't believe me when I say that Admin Tools has nothing to do with this, you can try the manual uninstallation method outlined midway through our release announcement.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Kakkaji
YES IT IS BECAUSE OF ADMIN TOOL. I managed to uninstall Admin Pro Tool Component this time by changing back to admintools.php.bak to admintools.php and emptied session table - could login to back-end and uninstalled Admin tools. Now my site work smoothly . No problem for updating. Thank God .. I can see my site back-end.

I want this component for the SECRET ADMINISTRATOR URL.But I am affraid of installing it again. Do you suggest any other component that I can create SECRET ADM URL for my site
thanks

nicholas
Akeeba Staff
Manager
I'll put it as simply as I can.

When you enable the "System - Admin Tools" plugin in your site, you tell Joomla! that on each and every page load it will have to look for a file named plugins/system/admintools.php or plugins/system/admintools/admintools.php and load it. When you rename that file to .php.bak the file is not loaded, because Joomla! does not load the php.bak file. Hence the documentation suggestion of renaming files.

A component, on the other hand, will only load when you try accessing the component. Since we are talking about a back-end component, it would only load if and only if the URL contains option=com_admintools. In any other case it does not load. In fact, when Joomla! sees option=com_foobar in the back-end URL, it will try to load the file administrator/components/com_foobar/foobar.php. If this file does not exist, nothing gets loaded from that component.

As you might imagine, code is something which can not run if it's not loaded. It's the reason you can not, let's say, run Admin Tools if you do not install it on your site. Therefore if what you described that you did on your site was within any degree of accuracy, here's what happened:
- After upgrading Joomla! (with Admin Tools loading), you got an error
- You renamed Admin Tools plugin's entry point file to php.bak, therefore Admin Tools was not loading at all. The problem remained.
- You renamed the php.bak file back to .php, therefore Admin Tools' plugin WAS LOADING and the problem DISAPPEARED.
- You removed Admin Tools, therefore its code was not loading and the problem didn't occur.

Therefore the problem occurred twice while both using AND not using Admin Tools and stopped occurring twice while both using AND not using Admin Tools. As a result, the problem IS NOT related to Admin Tools.

Put otherwise. At this point in time there are about 10,000+ Joomla! 1.5.x sites running Admin Tools. You are the only one reporting such an issue. Don't you think that if Admin Tools caused inability to login to Joomla! 1.5.26 sites I would be buried in support requests and would have received major outcry? Statistically speaking, it's extremely unlikely that there is such a grave issue with Admin Tools which only chose to manifest on your particular site.

So, can you please tell me how you came to the conclusion that Admin Tools has anything to do with your issue, especially since while Admin Tools was not activated your problem persisted? I know exactly what the problem is (stale Joomla! sessions), I know they are not related to Admin Tools (in fact, Admin Tools has an optional feature in the plugin to fix this issue with Joomla!...) but I can't convince you. You are free to believe whatever you want. That's as far as I can go with helping you.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Kakkaji
Yes.. You have answers for each and every questions. Thats make you different from other developers. here I can say that I have spent nearly 3 hours to solve this problem before I post a support Ticket.

I have tried all possible ways many times, honestly

1) changing admintools.php to admintools.php.bak, clearing cache, emptied Session table
and
2) Changing admintools.php.bak to admintools.php, clearing cache, emptied Session table

After these, I could login to back-end and after browsing few pages it went back to Login page.

Last Time I did BY Changing admintools.php.bak to admintools.php -> emptied Session table-> Login to Back-end -> Install/Uninstall -> Uninstalled ADMIN TOOLS -: RESULT SITE WORKING SMOOTHLY.

I didn't install or update any other extension in my site. that is why I said THIS PROBLEM IS BECAUSE OF ADMIN TOOLS. But I correct myself that this problem may not with ADMIN TOOL, may be unknown. since I am not a developer, I can not explain problem in detail. Anyway I just say ' Uninstalled Admin Pro Tools and problem solved"

Thanks for all the reply


nicholas
Akeeba Staff
Manager
Well, I try to have an answer for everything because I am asked pretty much about everything in this ticket system. Given the depth and breadth of the administrative extensions I write, I can safely expect to be asked about the most crazy and technical subjects - which is pretty much why I can't find anyone to help me with support :)

I will tell you exactly which point tipped me off as to why Admin Tools wasn't the culprit in this case. When you renamed the plugin file (therefore no Admin Tools code was running on your site) the problem persisted. This troubleshooting step broke the link between Admin Tools and the issue for me, so I started thinking what could the problem be.

The next step to understanding the issue is based on my experience with broken sessions. A few versions ago, Joomla! was complaining about Invalid Token. Same thing. Purging the cookies and the session table eventually resets Joomla!'s sessions and everything starts working. That's why I insisted in doing these steps in the order given. If you try to log into or visit your site after restarting the browser and before purging the sessions table you're back to square one.

The final step into understanding why this issue happened requires knowing what was changed between 1.5.25 and 1.5.26. The cryptic security announcement hints us that what was changes has something to do with inadequate randomness etc. Ultimately, this has to do with how Joomla! 1.5.25 and earlier handled user sessions and how that was changed in 1.5.26.

Combining all of the above (troubleshooting steps, experience, knowledge of what was changed) allows me to know within a very good degree of certainty what is going wrong. Normally, Joomla! should trash old sessions and ask you to log in again to your site. Well, sometimes sessions get stuck, hence the need to purge the sessions table and cookies.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!