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.
-
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
-
☆ 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.
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.
Hi,
None can answer this thread.