ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Problems with login pages

April 01, 2014 11:57am

Subscribe [2]
  • #1 / Apr 01, 2014 11:57am

    gelviis

    55 posts

    The situation

    Expression Engine v2.6.1 - Build Date: 20130506

    I have a live server and a dev server. They are identical.

    The problem

    On the live site, members cannot login on the front end. I can login with my admin un/pw to the control panel, but I cannot via the front end. When I try to login I am taken to the homepage of the site and I am not logged in.

    The front end doesn’t recognise that I am logged in in the control panel either.

    All of this has just started today. No changes have been made.

    The dev server works as it should (logs in fine)

    I have tried

    To solve this issue I have tried:

    Changing the session options security settings

    Deleted cookies and browser history etc

    Setting a cookie name .example.com

    Checking to see if the front end recognises me as logged in to the control panel (it doesn’t)

    I have set up a basic form to test logging in away from the main front-end code. Here is the form:

    {exp:member:login_form return="http://www.exmaple.com/some_test"}
        
                <label>Username</label>
    
                <input type="text" name="username" value="" maxlength="32" size="25">
        
        
                <label>Password</label>
    
                <input type="password" name="password" value="" maxlength="32" size="25">
        
        <input type="submit" name="submit" value="Submit"></p>
    {/exp:member:login_form}

    Everything works on the dev site as expected. On the live site (using the test above) I try to login and it just re-routes me to homepage and doesn’t log me in.

    My question

    What would be you recommend doing next? (upgrading is not on an option at the moment)

    This issue exists on Chrome, FF and Safari on Win7 and Mac 10.9

    —-

    PS - I reposted this from Stack Exchange

  • #2 / Apr 02, 2014 11:19am

    Kurt Deutscher

    827 posts

    I’ve seen this happen in Google Chrome on a Mac, and no amount of typical EE or Browser troubleshooting helps. So I switch over to FireFox, and suddenly the site logs me in just fine. I’ve never figured out exactly what’s going on, but just figured it was something that Chrome was doing.

    Most days I’ll be logged into and out of over a dozen different installs of EE, and the issue would crop up randomly in different sites, on different days. The only common denominator is my favorite browser Chrome.

    Any chance this is what’s haunting you?

  • #3 / Apr 03, 2014 5:47am

    gelviis

    55 posts

    FYI. I upgraded and still had some issues. The form has to be handled over HTTPs. This is the form (without the styling) I ended up with that worked on all servers:

    <form method="post">
    action="https://www.example.com/area"
    
       <input type="hidden" name="ACT" value="15">
       <input type="hidden" name="RET" value="https://www.example.com/area">
       <input type="hidden" name="site_id" value="1">
       <input type="hidden" name="csrf_token" value="{csrf_token}">
    
        <input type="text" name="username" value=""/>
    
         <input type="password" name="password" value=""/>
    
         <button type="submit" name="submit" value="Submit">Sign in</button>
    
     </form>

    —-

    PS - the action above caused formatting issues with this forum, so I added outside the form tag. Obviously, it should be in the form tag!

     

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases