We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22303 MODX Staff
    • 10,725 Posts
    Quote from: pixelchutes at Feb 20, 2007, 12:32 AM

    I wonder: (c|sh)ould checking for and subsequently "logging out" any "logged in" users be an initial step during the install/upgrade process? In other words, is it scriptomagically preventable?
    Probably a good idea, but I’m honestly not sure how easy or possible that will be. Perhaps just truncating the sessions table could do it. The problem is now, since cookies actually work with the sessions, the sessions can actually last for a long period of time, and killing them would lose other preferences as well. I think it should also trigger the site to go into offline mode...until completed (or at least as an option).
      • 23491 ☆ A M B ☆
      • 1,056 Posts
      Quote from: OpenGeek at Feb 20, 2007, 10:21 AM

      Probably a good idea, but I’m honestly not sure how easy or possible that will be. Perhaps just truncating the sessions table could do it. The problem is now, since cookies actually work with the sessions, the sessions can actually last for a long period of time, and killing them would lose other preferences as well. I think it should also trigger the site to go into offline mode...until completed (or at least as an option).

      Truncating session table and flagging "offline" does sound like a good idea. Should someone abort mid-upgrade, there site would still be Offline, and it might make most sense to manually be turned back online once A) Install folder is removed B) Configuration post-upgrade is Saved or C) Upgrade completes, with possible option to automatically turn back On
        Mike Reid - www.pixelchutes.com
        MODx Ambassador / Contributor
        [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
        ________________________________
        Where every pixel matters.
        • 25663 MODX Staff
        • 12,272 Posts
        Did you just volunteer to tweak that in the installer Mike? tongue
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 23491 ☆ A M B ☆
          • 1,056 Posts
          Quote from: rthrash at Feb 20, 2007, 04:45 PM

          Did you just volunteer to tweak that in the installer Mike? tongue

          I’d love to wink Seriously.

          How/Where would I go about submitting modifications such as this? Is there a formal process, such us: .diff file requirements, Rev. # references, etc?
            Mike Reid - www.pixelchutes.com
            MODx Ambassador / Contributor
            [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
            ________________________________
            Where every pixel matters.
            • 25663 MODX Staff
            • 12,272 Posts
            Do it in 095dev. Jason will just be persnickety and reject them if they’re not up to snuff. tongue
              Ryan Thrash, MODX Co-Founder
              Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
              • 22303 MODX Staff
              • 10,725 Posts
              Yes please, 095dev commit would be wonderful, so everyone developing on that branch can check it out...
                • 23491 ☆ A M B ☆
                • 1,056 Posts
                Sorry...just barely saw the last two posts...I need to subscribe to this topic! I will be in touch...
                  Mike Reid - www.pixelchutes.com
                  MODx Ambassador / Contributor
                  [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
                  ________________________________
                  Where every pixel matters.