Jump to content

Can't Log Into Admin - PHP Sessions Problem


Recommended Posts

I just upgraded to version 3.2.1 last and now I can't log onto the Admin area. Even time I try, i get the top task bar with ..

 

HOME .. CLIENTS .. ORDERS .. TRANSACTIONS .. etc.

 

But it displays again Username / Password to enter again .. when I click on any of the items on the task bar, it just refreshes and again asks for Username / Password.

 

I put in a ticket and Matt said it was a PHP sessions problem.

 

I can see in my php Sessions folder that it writes out a file every time and updates it. Here is an entry (I blanked out the password):

 

adminloggedinstatus|s:4:"true";adminid|s:1:"1";adminusername|s:4:"CWDJ";adminpassword|s:32:"******************";

 

Matt said to restart the server, which was done 3 times. He also said:

 

"No, nothing changed relating to this in the upgrade. It's definately PHP sessions not WHMCS but I'm no server tech and haven't got a clue what could cause it."

 

My hosting company (POWWEB) said that maybe the login.php file has gotten corrupted and I should re-load all the software again, which I don't think is the answer either.

 

Can anyone help me out to get back working again? Do I have to CHMOD the sessions folder or anything. No one seems to know how to fix this problem.

Link to comment
Share on other sites

  • WHMCS CEO

No, it won't be that file being corrupted. As we can see from what's being written to the sessions folder, the login is working, but still returns you to the login screen. This means that the session can't be read by PHP I would guess.

 

Matt

Link to comment
Share on other sites

I've checked the cookie issue .. tried 2 different browsers on 5 different PC's .. so that's not it ..

 

This also happened the last time I upgraded .. but all I had to do was to change the php.ini file to give the path of the sessions folder.

 

This time, nothing yet seems to work yet to fix the issue.

Link to comment
Share on other sites

Well I spent hours with our host, POWWEB, trying to resolve this problem.

 

We changed the location of the php sessions file to:

/htdocs/cgi-bin/tmp/

 

They also had me change settings in the php Sessions section in my php.ini file. We changed:

 

session.cache_limiter

session.auto_start

session.use_only_cookies

session.use_trans_sid

 

and a few other settings. Nothing worked.

 

They claim that since the user / password / etc. information is being written out correctly to the php sessions file, the fault lies with the software.

 

I am at my wits end ..

 

Matt, how can I go back to the previous release of WHMCS?

Link to comment
Share on other sites

I installed WHMCS to another webhost that we use (WESTHOST) from scratch. A new install of 3.2.1 ..

 

I get the exact same problem with the ADMIN login that we received on our POWWEB host .. it just loops and accepts the user / password and returns againg for the user / password.

 

If anyone wants to try it ..

 

EDIT: Login details removed for your own security now the issue is resolved!! (Matt)

 

This is hosted by POWWEB .. after hours on the line with their tech support, here is their response:

 

However; the above mentioned page is not allowing to login. Also, I have verified the CGI error logs. However; as there are no errors in the logs, it appears that there is no issue with the working of the CGI scripts in the customer’s account. However, please inform to the customer that the sessions have been created for each login for the folder phpsession, which is outside the root of the web directory. Also I have verified the Admin login information in the database/table tblAdminlog, and have noticed that the session path is being generated properly. Further I have tried to re-set the password, however, I am still unable to login. Please also suggest to the customer that even after trying for the hyperlink ‘ForGet password’, and then trying to login with the new temporary password login is not working fine.

 

Hence, it appears that the application scripts are not functioning properly, may be application is not installed properly or the application is not recognizing the session ID properly. As there is no issue with the session, the only suggested course of action for the customer would be to contact the application developer and check for any patches/updates for the mentioned application.

Has anyone else installed 3.2.1 yet .. if so, can you post your php.ini file for the php sessions ..

 

Matt, it seems pretty unusual that 3.2.1 doesn't work for 2 different webhosts. If you want, I can try a third ... I really need help to get the billing application working again. So, can you please look into this.

Link to comment
Share on other sites

  • WHMCS CEO

Hi,

 

Yes, that does seem unusual but you have to remember it's working for thousands of others. It can't be what they've suggested - open a ticket and I'll create a test file to attempt to prove there is a sessions issue.

 

Matt

Link to comment
Share on other sites

  • 1 year later...

Replying to an ancient post... but, i was experiencing the same problem and it ended up being a situation with me running suphp and it was writing to the my php.ini default session.save_path ( /var/lib/php/sessions ). I changed session.save_path to point to /tmp (which is my hardened tmp partition) and its working fine.

 

Mike

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
  • 3 weeks later...

I am also facing this problem. I can login OK and can see pages but am returned to the login page randomly, or so it seems.

 

This is a session problem. I checked to see if session data is written and it is after a successful login. File length is 95 bytes. File permissions are set to 0600.

 

This does not prevent WHMCS to return to the login page which usually happens after I click on a form button or menu option. After a return to the login, the session file is set to 0 bytes but not erased or deleted.

 

This tells me that WHMCS tries to authenticate the request but fails to retrieve session data when it needs it.

 

I hope this helps.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated