close

Slick­Stack

February 2025 promo! Join our Discord free of charge.

Slick­Stack
Lightning-fast WordPress on Nginx

resetting all WP user sessions daily on SlickStack

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #27363
    Danielle
    Guest

    how might this be possible if I want to ensure all users get force logged out of woocommerce every day. is there a way?

    #27366
    Charlotte
    Guest

    For WordPress you can reset the Salts in your wp-config to do this… for SlickStack purposes that means running the ss-install-wordpress-config bash script anytime you need, or you can set the interval in ss-config to automatically run that script each day.

    Example:
    https://github.com/littlebizzy/slickstack/blob/master/crons/07-cron-quarter-daily.txt

    ## run ss-install-wordpress-config if set to quarter-daily ##
    if [[ "${INTERVAL_SS_INSTALL_WORDPRESS_CONFIG}" == "quarter-daily" ]]; then 
        source "${PATH_SS_INSTALL_WORDPRESS_CONFIG}"
    fi

    Look at this option in your ss-config:

    ## INTERVAL_SS_INSTALL_WORDPRESS_CONFIG = [quarter-daily|half-daily|daily|half-weekly|weekly|half-monthly|monthly] ##

    #27367
    Joshua
    Guest

    I see this in my ss-config:

    INTERVAL_SS_INSTALL_WORDPRESS_CONFIG=”never” ## ss default = never

    #27368
    Zachary
    Guest

    Yes change to be e.g.

    INTERVAL_SS_INSTALL_WORDPRESS_CONFIG="daily"

    or whichever interval you prefer, probably daily should be more than enough, depending on your use case… or even half-weekly

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: resetting all WP user sessions daily on SlickStack

Thanks to our generous sponsors for their support!