login not working properly

login not working properly

Shriya Dhar -
回帖数:5

I have uploaded moodle on the server. I am using php 4.3+apache+win 2k. The problem is that

when i type the url i.e. http://203.86.100.236:8181/moodle/ and put the username and password (u can try by giving username as test and password as test) it gives error though it logs in the the backend. This can be tested by giving the above url again. It shows the ccourses etc. Also when I logout same problem is there and it gives error. What is the problem here. Locally it was running successfully with the same configuration.

回复Shriya Dhar

Re: login not working properly

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
I logged in OK - but when I logged out I got forwarded to http://host-236.palcomonline.com:8181/moodle/ which doesn't exist.

It's hard to say what the problem might be since the copy of Moodle you have there has been heavily modified, so I have no idea what your code is doing. Site looks nice though.
回复Martin Dougiamas

Re: login not working properly

Shriya Dhar -
But when you logged in were u directly redirected to moodle/index page or not. Basically in the moodle index page i have made the page redirected to login/index page but don't know why when i login i don't get back redirected to index page. The problem that you have written that u get redirected http://host-236.palcomonline.com:8181/moodle/ on logout, i donot get it here. It tries to go to /moodle but does not show the page. If we add / after moodle the page comes again. I am not able to understand what can be the problem. 
回复Shriya Dhar

Re: login not working properly

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
After logging in I was sent to the home page: http://203.86.100.236:8181/moodle/

Check that you don't have security software (eg zonealarm or norton security) that might be stripping referrer information from your browser traffic.
回复Martin Dougiamas

Re: login not working properly

Shriya Dhar -
Do u want to say that people who have antivirus s/w will not be able to access it. There shoud be some solution and also how does it work here locally. 
回复Shriya Dhar

Re: login not working properly

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
This has also nothing to do with anti-virus software, it's to do with firewalls (which is why you didn't see the problem locally). As far as I can see there is absolutely NO security benefit in disabling referrers. Nevertheless it seems people are increasingly turning this option on in their firewalls (or maybe it's enabled by default) which is why there will definitely be a workaround in the next release: http://moodle.org/bugs/bug.php?op=show&bugid=295