We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30636
    • 22 Posts
    Hi ,

    I’m using MODX 0.9.5 . I have created two users , when I login and logout as one user and again login as another user , I get the data displayed as previously logged in user. How to fix this . I think the sessions are not destroyed properly at the time of logout.

    For every user , who logs into my site should be redirected to some registered users page. This options is only present at admin side , where the admin has to provide the page id for each and every user after they got registered. Is there any config setting , so that all the registed when logged in get redirected to the Registed user pages.

    Please help me in this regard,
    Thanks in advance.
      • 25663 MODX Staff
      • 12,272 Posts
      Would need to know a lot more about your server, and whether or not you mean manager or web users, the groups you have set up, how you have the user overrides set up, etc.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        In the WebLogin snippet call you can put
        [!WebLogin? &loginhomeid=`34` &logouthomeid=`1`!] 
        

        or whatever the appropriate document IDs would be for your site.
          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
          • 30636
          • 22 Posts
          Hi,

          I have plotted the mistake , but How can i get such an desired output is remaining .

          I have printed the session data in the login and logout display pages , and found intact.

          But , when I use print_r($_SESSION) in the snippet written by me , I got wrong session data.

          How can I use the correct session data in my snippet.

          I just need the session data to say Welcome to the logged in user.

          Also , can I post the values of a form from one html page generated by one snippet to another html generated by another snippet.

          like the form of index.php?id=22 posted to index.php?id=44.



          Please help me in this regard.

          Thanks in advance.
            • 30636
            • 22 Posts
            Quote from: rthrash at Oct 31, 2006, 10:14 AM

            Would need to know a lot more about your server, and whether or not you mean manager or web users, the groups you have set up, how you have the user overrides set up, etc.

            Im using FreeBSD , PHP5and Mysql 4.x...

            and Modx version is MODx 0.9.5 beta 3 (rev 1533).

              • 30636
              • 22 Posts
              Hi,
              None can answer this thread.
                • 25663 MODX Staff
                • 12,272 Posts
                I’m out of suggestions and unable to replicate the issues. Do you have access to an alternate testing platform?Quote from: trinath at Nov 01, 2006, 01:29 AM

                I just need the session data to say Welcome to the logged in user.

                Use the Personalize snippet which does exactly that.
                  Ryan Thrash, MODX Co-Founder
                  Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                  • 30636
                  • 22 Posts
                  hi,

                  Thanks for all who helped me.

                  Finally I got the http://modxcms.com/forums/index.php/topic,8107.0.html which helped me to resolve this issue.

                  :)