Dear All, As a part of my Moodle/Amember integration, my Moodle site is http://www.mysite.com/courses. I've set it up so that the the page http://www.mysite.com/courses is empty and users have to login to be able to see the names of the courses in the site, the summary of the site and so on. I don't want users to see such details before logging in. Now, I has created a product (http://www.mysite.com/courses) in Amember. I would expect a person to purchase the course, and then after logging into the site through Amember be automatically directed to http://www.mysite.com/courses - the page with all the courses and summaries on it. However, I've been testing the system and after I create a new user, purchase the course and then login through Amember, I get directed to http://www.mysite.com/courses - the page which is empty (which users would see before logging in, if using through Moodle). I don't know how how to fix this behaviour. Can someone help me out please? Thanks, ch
Hi Guys, I'm wondering if this behaviour might have something to do with sessions? The behaviour is as follows at present: When I login through Amember, I go to the page in Moodle where I can access all courses. However if I quickly logout, and then login again through Amember I just go to the blank/empty page. This empty page has the Moodle login link in the top right, which if I click on, goes to the following page: http://www.mysite.com/courses/login/index.php and then I can enter my login details, which allows me to see and access the courses again. I did clear sessions from session folder in moodledata, but I still get the same behaviour. Any help would be much appreciated. It's frustrating, as I don't really understand the technical details behind how Amember and Moodle work.
Any ideas anyone? Amember support team, I've also put a request through help desk. I would be grateful for your response.
Hi Guys, Can I bump this post up again please? Does anyone have any idea what this behaviour could be? Help desk hasn't got back to me yet. Thanks, ch
While I can't assist with Moodle (switched off of it a few years ago).. if you continue to run into obstacles you could also consider a more compatible platform such as eFront: http://amember.com/forum/showthread.php?t=8632
Hi skippybosco, From your previous experience of Moodle and Amember, do you have any idea what this problem could be? Or does anyone else? Please see the message I sent to help desk below (I would be grateful for any help): I've have set a product in Amember whose URL is http://www.mysite.com/courses The above URL has a list of course available, and summary of the product, which users can click on. I've been testing it and creating a dummy user, registering through Amember and then logging in. The first time I login, I'm directed to http://www.mysite.com/courses and the user can see links to all the courses in the site. At this point everything is fine. However, if I quickly logout and then login using the same login details, I'm directed to http://www.mysite.com/courses, I'm directed to an empty page (with no courses and summaries on it). The only thing on the page is 'Contact Us' and 'Calender' widgets from Moodle and a Moodle link (login) in the top right, which when you click, the user gets directed to the Moodle login page. I'm not sure how to fix this behaviour. One thing I did notice with the above behaviour is that if I go to http://www.mysite.com/sb/member.php, the user is still logged in! I read on the Amember forums, and there was commenting about suhosin.session.encrypt should be turned to Off to fix a similar problem someone else was having. I asked our web host to do this for us, but the same problem is still there. I would be grateful for your help. We are about to start Beta testing soon, and need to get these things fixed.
You told that you submit ticket with this issue, if this is not fixed/answered yet, please send ticket ID to alexander@cgi-central.net I will check this.
Hi Alexander, Thanks for your message. I'm now working with Anton in help desk to try and get this behaviour fixed. Best wishes, ch
Hi skippybosco, Anton fixed it by changing: $redirect = "http://mysite.com/amember/logout.php"; to $redirect = "http://www.mysite.com/amember/logout.php"; in file /moodle/login/logout.php Cheers, ch