• Resolved Paul Scollon

    (@scollonp)


    Okay, so great plugin, and can confirm it is working fine with latest WordPress, Woocommerce etc. Love it, have even signed up for the pro version trial. I have one issue. I am attempting to simplify the sh*t our of the login process for customers, so have also integrated “Auto Login New User After Registration” by Jeff Sherk (auto-login-new-user-after-registration) which also works well. However, when a use is autologged in, the Persistent Login cookie does not seem to be set. A user still has to come back to the site and login manually, which means they need to set a password etc and so is not ideal.

    How can I get the Persistent Login to start even when a user is auto logged in by another plugin? I have no issue hardcoding something into the other plugin and disabling updates if required, just need the code snip or function for my own functions.php. Please advise.

    • This topic was modified 5 years, 10 months ago by Paul Scollon.
    • This topic was modified 5 years, 10 months ago by Paul Scollon.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author lukeseager

    (@lukeseager)

    Hi there Paul, thanks for your support for the plugin, I’m glad you’re finding it useful.

    I will investigate the issue with Auto Login New User After Registration for you, I would like add support within the plugin, rather than provide additional functions/workarounds.

    However, it might be a good idea for me to provide some hooks for developers, i’ll add it to the features list!

    I’ll report back once I have a solution for you.

    Thread Starter Paul Scollon

    (@scollonp)

    That’s fantastic, thank you. If it is possible, I will certainly be using this plugin for all site designs in future!

    Plugin Author lukeseager

    (@lukeseager)

    Hi Paul,

    I’ve just had a go at testing out the Auto Login New User After Registration plugin on some test space.

    When testing, after registration the WP Persistent Login cookies were set. After restarting the browser, I was automatically logged back in again.

    There must be something else afoot here. Are you able to list all of the plugins you have running please?

    EDIT:
    I have just had a go at registering on the website in question, and I can see that it’s not setting the Persistent Login cookies. I did notice that the registration form only has the email field as an option and the form code looks a lot different to what I have on my test space (I may be looking at the wrong form though if you’re just testing out Auto Login After Registration).

    Feel free to contact me via email to discuss specifics about your setup if you’d like to.

    • This reply was modified 5 years, 10 months ago by lukeseager. Reason: Additional information
    Thread Starter Paul Scollon

    (@scollonp)

    Ok, so I’ve tested the combination of the 2 plugins on other sites and they DO work, the cookie is always set – just not on sarahmckenna.ie, even if you bypass the pop-up login form and go directly to https://www.sarahmckenna.ie/shop/my-account

    I’ve also disabled the plugin for the login pop-up, made no difference.

    There is a setting in Woocommerce for “When creating an account, automatically generate a username from the customer’s email address” and “When creating an account, automatically generate an account password”, toggling these makes no difference either.

    I’ve also switched themes, still the same issue. So not a theme conflict.

    Unfortunately the list of plugins is extensive, and not all of them free. I’ve done a listing of the plugin directory below. At this point I believe the effort to troubleshoot on your part (and mine) would be too much, as it just means at SOME later point after being auto-logged in the user will need to do a password reset, and just once as after that your plugin will keep them logged in.

    Here’s the list, maybe something will jump out at you. Otherwise, please do not worry too much about it. I’ll likely stumble upon the cause of the conflict myself at a later date. It’s not a show-stopper for me and I am quite happy to support your plugin (especially as I know the setup will work on other sites).

    404-to-start
    aelia-woocommerce-blacklister
    akismet
    auto-login-new-user-after-registration
    child-theme-configurator
    cloudflare
    contact-form-7
    cookie-notice
    custom-login
    custom-new-user-notification
    default-image-settings
    disable-comments
    disable-xml-rpc
    easy-fancybox
    facebook-for-woocommerce
    fast-velocity-minify
    google-analyticator
    google-captcha
    hide-products-count
    homepage-control
    iwp-client
    jetpack
    mailchimp-for-woocommerce
    mailchimp-for-wp
    popup-maker
    quick-pagepost-redirect-plugin
    really-simple-ssl
    require-featured-image
    resize-image-after-upload
    restrict-widgets
    sfx-align-menu-right
    simple-author-box
    smtp-mailer
    social-media-widget
    storefront-blog-customiser
    storefront-blog-excerpt
    storefront-footer-bar
    storefront-hamburger-menu
    storefront-mega-menus
    storefront-parallax-hero
    storefront-powerpack
    storefront-product-sharing
    storefront-reviews
    storefront-sticky-add-to-cart
    stripe-woocommerce-addon
    ti-woocommerce-wishlist
    updraftplus
    user-menus
    user-role-editor
    wc-aelia-foundation-classes
    woocommerce
    woocommerce-advanced-free-shipping
    woocommerce-auto-category-thumbnails
    woocommerce-bulk-stock-management
    woocommerce-checkout-manager
    woocommerce-colors
    woocommerce-currency-switcher
    woocommerce-extra-product-sorting-options
    woocommerce-login-popup-and-shortcodes
    woocommerce-mailchimp
    woocommerce-pip
    woocommerce-rapid-stock-manager
    woocommerce-smart-sale-badge
    woocommerce-table-rate-shipping
    woocommerce-waitlist
    wordfence
    wordpress-seo-premium
    wp-maintenance-mode
    wp-optimize
    wp-persistent-login-premium
    youtube-embed-plus

    Plugin Author lukeseager

    (@lukeseager)

    That is a big list! I’ll run a test on the login related plugins to see if I can find a culprit.

    I am going to add a hook to the plugin for developers to set the persistent login for a user, so worst case you should be able to add some code to your functions.php to force the persistent login.

    Thread Starter Paul Scollon

    (@scollonp)

    I’ll help you out – here’s a clone of the site with your user promoted to admin -> http://sandbox.sarahmckenna.ie

    • This reply was modified 5 years, 10 months ago by Paul Scollon.
    Plugin Author lukeseager

    (@lukeseager)

    As an update for the thread after some email corrospondence with Paul: The bug seems to be limited to Linux operating systems whilst running the auto login plugin.

    Further testing is taking place to fix this bug.

    Plugin Author lukeseager

    (@lukeseager)

    After researching and testing, with the help of Paul (much appreciated!) I can confirm that this bug has been fixed.

    The fix will feature in the next update of the plugin in the coming days.

    Thanks again to Paul for his assistance.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Set Cookie when using Auto Login After Registration’ is closed to new replies.