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

XF 1.4 Problems logging in on certain browsers

Discussion in 'Troubleshooting and Problems' started by Shelley Hitz, Jun 11, 2015.

  1. Shelley Hitz

    Shelley Hitz New Member

    I have my xenforo forum integrated with Amember login.

    However on certain browsers, members are having difficulty logging in. What has seemed to work most of the time (not all) is to restart their computer and clear cookies/cache.

    Any ideas of why this might be happening and what I can do to prevent it? It is causing support requests as members are having difficulty logging in.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    If log in is via amember, you will need to contact them for support.
     
  3. Shelley Hitz

    Shelley Hitz New Member

    Okay, I already asked them about it and they didn't have any other suggestions so I thought I'd ask here too. Thanks!
     
  4. Shelley Hitz

    Shelley Hitz New Member

    It seems to be a www vs non www URL issue.

    I've seen a lot of threads on here about this issue but am not sure what solution might solve my problem. I did check all my settings and they are set to the www. URL

    This is what Amember told me. Any thoughts on what might work best with Xenforo so there is not this cookie issue?

    ======================

    The problem seems to be in cookie domain name which is used by xenforo.
    Xenforo set cookie for exact domain name. So for example when user login fromhttp://www.shelleyhitz.com/access/community/
    cookie will be set to www.shelleyhitz.com
    If user login through http://shelleyhitz.com/access/community/
    cookie will be set to shelleyhitz.com
    if user login through shelleyhitz.com and then somehow will go to www.shelleyhitz.comhe will not be logged in.
    Xenforo will create two different cookies in this case. Please have a look at the bottom of attached screenshot. As You can see there are two different session in xenforo. And User is logged in one and not logged in another.

    So in order to fix this issue. Check all links across the site and make sure that you always use the same domain in all links.
    Also check all scripts URLS(wordpress, amember, xenforo).
    You also can setup redirect rule to be sure that user is always use the same domain.
     
  5. Mike

    Mike XenForo Developer Staff Member

    Shelley Hitz likes this.
  6. Shelley Hitz

    Shelley Hitz New Member

  7. Brogan

    Brogan XenForo Moderator Staff Member

    Ensure you have your FTP application set to show hidden files.

    If you still can't see the .htaccess file, you can create one by renaming htaccess.txt.
     
    Shelley Hitz likes this.
  8. Shelley Hitz

    Shelley Hitz New Member

    I can't use the rewrite rule on my main domain shelleyhitz.com as I have subdomain installations and it will redirect them to a 404 page.

    So, will this work in a folder in a subdomain?

    I created a htaccess file within shelleyhitz.com/access/community folder and wrote it like this:

    RewriteEngine On
    #RewriteCond %{HTTP_HOST} ^shelleyhitz.com/access/community
    #RewriteRule (.*) http://www.shelleyhitz.com/access/community/$1 [R=301,L]

    I'm still getting an error when I try to login. Not sure if it's because I have cookies from before?

    Will the rewrite code solve the cookie issue?
     
  9. Tracy Perry

    Tracy Perry Well-Known Member

    You may also have to enable the ReWriteBase in it.
     
    Shelley Hitz likes this.
  10. Shelley Hitz

    Shelley Hitz New Member

    How would I do that? Thanks!
     
  11. Tracy Perry

    Tracy Perry Well-Known Member

    add
    Code:
    RewriteBase /access/community
    in it, if your forum is located in /access/community off of your root directory.
    Or at least I am pretty sure that's the correct one - I haven't used Apache rewrites in a while (I've been on nginx for the last several years).
     
  12. Shelley Hitz

    Shelley Hitz New Member

    Okay, thanks! If anyone knows for sure, let me know. I definitely am not an expert in this kind of code!!
     
  13. Tracy Perry

    Tracy Perry Well-Known Member

    In the sample .htaccess.txt it has this above the ReWriteBase
    Code:
           #       If you are having problems with the rewrite rules, remove the "#" from the
           #       line that begins "RewriteBase" below. You will also have to change the path
           #       of the rewrite to reflect the path to your XenForo installation.
     
  14. Shelley Hitz

    Shelley Hitz New Member

    We FINALLY figured it out. Thanks!
     
    Tracy Perry likes this.

Share This Page