login not working properly

login not working properly

by Shriya Dhar -
Number of replies: 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.

Average of ratings: -
In reply to Shriya Dhar

Re: login not working properly

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of 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.
In reply to Martin Dougiamas

Re: login not working properly

by 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. 
In reply to Shriya Dhar

Re: login not working properly

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of 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.
In reply to Martin Dougiamas

Re: login not working properly

by 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. 
In reply to Shriya Dhar

Re: login not working properly

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of 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