We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12584
    • 208 Posts
    Have a very frustrating problem, if I am editing a page then choose the preview option in either the manager or by opening the page in a new tab, when I then go back to the manager it takes me back to the log in screen and I have to log in again, I am using the latest version and have friendly URLs turned the same as my other sites but these all work fine.
    If i look at a non modx page on the same domain I can go back to the manager with no problem. but if I preview any page being served up by MODX then I get this log i issue happens in firefox and IE.
    Does anyone have any idea what the problem might be.

    Cheers

    Ian
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Probably a www/non-www domain name issue. PHP views the two (www.domain.com and domain.com) as two different domains, so a session with one won’t work with the other one.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 12584
        • 208 Posts
        Yes see where your coming from dont think I explained myself to well in my 1st post. This is what I dont understand this is all part of the same www. domain, if I edit a page then view just that one page only all part of MODx, as soon as I go back into the manager without viewing anything else I have to log back in. Unless there is some setting in the config section I am overlooking I cant work out what i I loose the session.


        Cheers
          • 26675
          • 24 Posts
          Out of the blue I get the same frustrating problem.
          ian_m, did you find out how to stay logged in?

          Last night after few hours of playing in manager I am kicked out for no reason!

          In about one hour I was logged out more than 30 times!!!

          This morning the same happen, I can´t stay logged in.

          I hope there is a solution to this problem, if not, I have to go elsewhere for "ready out of the box" solution!!
            Will this info speed up replies to my inquiries?

            Web Server:
            Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 PHP/5.2.5

            Database:
            MySQL 4.1.22-standard

            MODx:
            9.6.1.
            Any changes you've made: just add new pages
            Any snippets you're running on the page that is not working properly: not that far yet
            Any plugins you're running: just the one that come with the .zip

            Browser/Client:
            Opera 9,5
            Win Vista ultimate
            • 12584
            • 208 Posts
            I still have the problem, I even reinstalled the whole site but as soon as I run the database backup I am back to the same problem, as soon as I view the sites pages the session is lost it only seems valid while in the manager, if you discover the solution please let me know.

            Cheers
              • 26675
              • 24 Posts
              I might be wrong but I have found this out, when editing or making a new page in
              manager, it seems to me MODx needs some time to accept the new changes.

              If I wait for about 2-3 minutes to view or reediting the new or changed file, I am
              usually not kicked out of manager and don´t need to login again.

              Edit: However this is not always the case, sometimes I am logged out when I
              click some other tree document links so, there is something more to this problem.   
                Will this info speed up replies to my inquiries?

                Web Server:
                Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 PHP/5.2.5

                Database:
                MySQL 4.1.22-standard

                MODx:
                9.6.1.
                Any changes you've made: just add new pages
                Any snippets you're running on the page that is not working properly: not that far yet
                Any plugins you're running: just the one that come with the .zip

                Browser/Client:
                Opera 9,5
                Win Vista ultimate