By rmyoung on
My site has been working fine but suddenly I have been unable to login to my administration section. The login doesn't work on any browser on windows or mac. I have searched all the documentation and forums and tried various tweaks but can't get it to work. When I try to login I am redirected to the login page and then if I try to navigate to the administration section I get a 403 error. I can't get into the administration section to change anything. I have deleted my users and user_roles tables and reinstalled them from my local version of the site (which is working fine) but that didn't help.
Any help would be greatly appreciated.
I am using drupal 5.3 with php 5.
Comments
Can I upgrade without access to administration?
I still haven't solved this problem.
I have backed up the database and restored it locally and works fine so not an issue with the database.
I have checked all the files and settings and seem to be fine.
I have read all the documentation and can't find a solution.
Changing the theme didn't work either.
I assume it must be a conflict between server setup and drupal. I am currently using drupal 5.3 and hosting is with hostmonster.
How can I safely upgrade without access to the administration section to turn off modules, etc.
Would multiple logins to the one user cause problems?
I did the upgrade but it didn't help any way. I am not sure how I am going to solve this issue. I have spent the whole day today reading long listings going back years to try and fix this issue but no-one seems to have a solution that consistently works and none of them have worked for me. It is very frustrating as I haven't been able to login to the administration section since christmas so the site is looking quite outdated now. I think I might have to leave the site the way it is until next christmas the way this problem seems to be going.
I wonder if having an active login to the uid 1 account on one computer and then logging onto uid 1 on another computer as well would reproduce this as it only seems to happen on the live site which I access from multiple computers and not on the local testing site which is only accessed from the one computer?
please help with login
I have tried all the solutions I have been able to find on login issues and none have resolved my problem. I started from scratch with a fresh install of drupal 5.6 and rebuilt my site. I set the site up locally on a WAMP server and all was working fine. When I transferred the site to hostmonster (apache 1.3.39, php 5.1.6, and mysql 5.0.37) I am unable to login into any accounts. When I try to login I am returned to the administration login page and do not appear to be logged in.
I have subsequently transferred the site and database to a local mamp instillation and can login without any issues again, so it must be something to do with the hosting environment at hostmonster that is the issue.
The login page is http://www.crownvet.com.au/?q=adminlogin
I have created a new user for testing: username: test
password: test
Please help me! This is driving me nuts.
ps. Hostmonster helpdesk have been nothing short of useless helping me with this.
Cookie path?
For some reason, your domain cookie path is set to '/tmp'. Do you have a ini_set('session.cookie_path', '/tmp'); in settings.php or similar entry in the .htaccess file?
thankyou
The 'session.cookie_path' is set to '/tmp' in the default php.ini file at hostmonster. I edited the php.ini file and chnaged the path from '/tmp' to '/'
Problem solved!
Can we dumb this down?
I think I may have this problem, too (I try to log in as administrator but it logs me in as my test profile, even after I delete this account in the database). I do not know where to find this session.cookie_path to change it. Is it something my host needs to do? Or can I change it in htaccess, and if so, what do I need to type in?
Session.cookie_path location
Hi amnion,
The session.cookie_path is in the php.ini file. The php.ini file controls the php settings for your site. Depends on who's hosting whether you have access to it or not. I am hosted with hostmonster and they install it in the root directory. Mine was actually missing initially so I asked them to reinstall it.
You open the php.ini file with a text editor and then find the section about cookies. One of these settings is session.cookie_path. It needs to be set to /
I don't think this will solve your problem though. Am I right that when you try and login to the administrator account you get logged in as another user?
Matt.
I think I might have the
I think I might have the same problem. Unfortunately my host (servergrid) doesn't allow me access to php.ini - any suggestions?
check your session cookie path
To check your session cookie path I use the web developer toolbar extension for firefox. If you use this it will allow you to examine the cookies and it shows the cookie path. If your cookie path is wrong have you tried asking your host to change the php.ini file for you?
Can't login as administrator
I experienced this problem after I logged in as administrator using Avant Browser (IE shell) and as a registered user on Firefox. When I tried to login later from a different computer on my home network, the login page just kept popping up - no error. Trying to reset the password didn't work - actually, when I tried that, it failed to reset the password, as I later found out. When I logged into the orignal computer using Remote Desktop Connection and tried to log in as administrator, I was successful. Once I logged out and closed the remote session, I was able to log in to the site from my home network.
I can't remember if I logged out from both sessions on the remote computer that I originally used - maybe the session expired but didn't properly "release" the site? Way beyond my exppertise.