1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Some users are logged out without a reason

Discussion in 'Troubleshooting and Problems' started by estranged, Apr 18, 2011.

  1. estranged

    estranged Well-Known Member

    Some of my users have reported that after logging in to the site, they find themselves logged out after clicking on alerts etc and they get a "you have to be logged in to do that" kind of message. They say this does not always happen but most of the time they have to log in twice.

    I could not reproduce this issue myself, however what these users have common is they all have XenForo_Authentication_vBulletin in xf_user_authenticate table. (this is a vb import)

    Any ideas?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    If there was a problem with the password then your users would get an error on login.

    I just registered on your site and tested the login system. I have not been able to reproduce the problem you described. Perhaps one of your users can provide you with their login so you can test it? At this point we still need to reproduce the problem.

    I noticed a different problem during my testing. Your rewrite rules to remove the "www" from the URL aren't working properly. Click this link and you will see the problem:

  3. estranged

    estranged Well-Known Member

    Thanks for your reply Jake.

    I'll request the login details and try to reproduce it myself.

    Yes I am aware of that issue and I've been trying to fix that actually but not sure how. I used this method to remove www in my urls and then tried this. Both of them are causing the same problem.

    This is what I have currently in my .htaccess

    RewriteCond %{HTTP_HOST} www.turkrock.com$
    RewriteRule ^(.*)$ http://turkrock.com$1 [R=301,L]
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Try adding an ending slash:

    RewriteCond %{HTTP_HOST} www.turkrock.com$
    RewriteRule ^(.*)$ http://turkrock.com/$1 [R=301,L]
    Brogan and estranged like this.
  5. estranged

    estranged Well-Known Member

    Looks like it's working fine now :) Thanks!
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Is the logging out issue now resolved?
    It's possible it was related to the rewrite due to swapping between domains.
  7. estranged

    estranged Well-Known Member

    I don't know that yet. I couldn't reproduce it myself. Actually there was no swapping between www or without www domain, it was always without www but if you used http and www at the same time, like http://www.turkrock.com/forum it would direct you to a non existent url like http://www.turkrock.comforum Using only www. or only http:// worked fine. We'll see if this also fixes the login issue :unsure:

Share This Page