Martin wrote: "http://moodle.org/doc/index.php?file=faq.html#loginsetting ??"
Thank you!
After you pointed it out, I noticed that the $CFG->wwwroot did not contain 'www' in the web-site address, but the login-page did. So, I added 'www' and it began to work smoothely.
Victor