This is very strange. Does anyone have a solution?
This is very strange. Does anyone have a solution?
Re: Cannot login, I get redirected to a testsession page
I am using moodle 2.5
Re: Cannot login, I get redirected to a testsession page
I have the same problem. The moodle was working fine. I was logged in as admin, I made some changes to a moodle file and then I am trying to login and I can' t
Re: Cannot login, I get redirected to a testsession page
Might try this first .. purging caches without logging on:
http://yoursite/admin/purgecaches.php
If you have command line access ...
cd moodlecode/admin/cli/
php purge_caches.php
then see if you can login.
See the config-dist.php file for how to add debugging lines to config.php so Moodle can report what issues it sees/finds.
Or, 'un-do' the dhanges you made to that 'moodle file' you edited ... ie, put it back the way it was. It is highly recommended one NOT hack any php file/script in Moodle unless one knows what one is doing. Rather, post a question in the forums here with whatever you are trying to do. There might be an answer that does NOT require hacking of code.
'spirit of sharing', Ken
Re: Cannot login, I get redirected to a testsession page
Anyway, thank you very much for your reply
Re: Cannot login, I get redirected to a testsession page
Re: Cannot login, I get redirected to a testsession page
Hello I have seen this happen when a user disables cookies in their browser, or blocks the Moodle cookie.
As a separate guess your cookie configuration for Moodle is broken check 'cookie path', 'cookie prefix', 'cookie domain', 'only http cookies', 'secure cookies only'.
Re: Cannot login, I get redirected to a testsession page
Had multiple browser windows open during Moodle 2.5.2 tweaks/troubleshooting and was unable to login: same 'testsession=#' string in URL. Cleared browser cache many times. Long troubleshooting story short: I opened a different browser and got right in. Thereafter, all windows in primary browser were closed (closing the browser), restarted it, and problem was gone. Later, went back to second computer that had been used to test Moodle changes. Earlier browser window was still open and it was exhibiting same 'testsession' problem. Closed the browser, restarted it, and had no further problems.