Jump to content

Users can't stay logged in, session problem?


Recommended Posts

Hello people, first post so please bear with me. I have tried searching the forums for this problem along with google, blah blah blah but cant seem to find a relevant solution.

 

Our joomla site has recently had whmcs installed at the following url:

 

www.admodum.co.uk/clients/

 

We seem to be having a problem with keeping users logged in. Every time a user logs in, even if they check the 'remember me' box they still get logged out when they click to go to another page within whmcs.

 

I have checked accept cookies from site until they expire in my browser (firefox) and have made sure that my /tmp session directory is chmodded to 777 outside of public_html. Those were the only real solutions that I could find, and yet I am still having the problem.

 

If you would like to test it out to see the symptoms PM me and I can send you user credentials, or just sign up to a new account...

 

This is really bugging me so any help is greatly appreciated.

 

Jon

Link to comment
Share on other sites

Another question:

 

When logging in are they going from http://www.somedomain.com to http://somedomain.com or vice versa? If so, try the link with or without the www so it matches the login.

 

IE if they log in at http://www.somedomain.com make sure that the next page they visit is http://www.somedomain.com/nextpage.php or edit the link instead of clicking it and put it in manually.

Link to comment
Share on other sites

I would assume the browser/computer time and server time are correct as I stay logged in when I am in the main joomla admin area, it does not log me out. This seems to be something specific to the whmcs install...

 

FYI - I have entered a line on the .htaccess file as follows:

 

php_value session.save_path ../../tmp/

 

to specify the session folder outside of the public_html directory, however seeing as the whmcs install is in a subdirectory of public_html will the session save path be different for whmcs install?

Link to comment
Share on other sites

ckh - the 'www' is always in the address bar, the joomla config has been set up to include the 'www' in the install. Removing the 'www' from the address doesn't seem to change anything.

 

Additionally I forgot to mention - if you don't tick 'remember me' you can't log in at all... :?

Link to comment
Share on other sites

  • 2 weeks later...

Hi, one of my clients have a similar problem, the coudn't login to http://www.mydomain.com/clientes.'>http://www.mydomain.com/clientes. Every time he enter his login details, the page just refresh and again show him the login form. But when he tried http://mydomain.com/clientes (without WWW) the problem was solved. I'm interested on using the first one (http://www.mydomain.com/clientes) so what should I do to make it work.

 

Thanks

Link to comment
Share on other sites

Additionally I forgot to mention - if you don't tick 'remember me' you can't log in at all... :?

 

I had the same problem when I tried to run PHP as FASTCGI. The logging page only refreshed when trying to log in with out the 'remember me' option. I switched back to run PHP as DSO. Any way to make the logging work with FASTCGI or SUPHP?

Link to comment
Share on other sites

Update: i think i now have the problem solved after a bit more experimenting.

 

The session path I was using when specifying the php session save path in the .htaccess file was

php_value session.save_path ../../tmp

when it should have been stating

php_value session.save_path '/tmp'

 

Thanks for all your replies and suggestions though!

 

Jon

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