Windows server: session error in moodle 1.9 in windows

Windows server: session error in moodle 1.9 in windows

by Sankar R -
Number of replies: 2

We tried to install Moodle version 1.9 on php 5.2, IIS 5.1, MSSQL (v. 9) Windows XP.

And we have Dotnet Framework 1 and 2 installed in our system.

We followed all the installation steps in the following links

http://docs.moodle.org/en/Installing_MSSQL_for_PHP
http://www.peterguy.com/php/install_IIS6.html
http://docs.moodle.org/en/Windows_installation

We have included necessary “dll” files in PHP/ext and added the extension in php.ini.

The Config.php file was created without errors. After that the database was created successfully with out any errors. Immediately we were taken to the login page with User name displaying “admin” and displaying the following error.

“Your session has timed out. Please login again"

We have enabled cookies and checked out this with both IE 6 and Mozill Firefox browser. The cookies are created.

We didn’t provided any details for creating admin user.

When we checked the database table “mdl_user” , it has two users (admin & guest).But we didn’t see the admin account creation page.

Once we tried to login with guest it displayed the following error.

“A server error that affects your login session was detected. Please login or restart your browser.”

Initially we set the session.save_path =”c:\moodle\moodledata” and had given the full rights to that folder.We could able to see the session files created in this folder.

And we could see the moodledata folder in several subfolders of moodle directory.

e.g moodle/admin/moodledata, moodle/login/moodledata (We didn’t checked entire moodle directory for how many moodledata folder created in installation).

When ever we open the moodle website new session files were created in the moodle data folder and displaying the same error

“A server error that affects your login session was detected. Please login or restart your browser.”

Finally we have changed the session.save_path =”c:\temp” in php.ini and restarted IIS, deleted config.php, deleted cookies and deleted old database.

Once again everything I went as same as above. But now we could able to see that only one session file is created in “C:\temp” and the same session is created in moodledata folder.

When we tried to login again and again new session files were created only in moodledata folder but not in “C:\temp”.

there is one entry was made in mdl_log table in the database. Even when we tried to login as Guest user. It displays the error immediately “Your session has timed out. Please login again" and make no entries in the mdl_log table.

We think this might be problem for session maintenance using PHP in IIS. We would be much thankful to those who help us to solve this error.

Thanks & regards,

Average of ratings: -
In reply to Sankar R

Re: Windows server: session error in moodle 1.9 in windows

by willy tan -

hi all, hi sankar....

i installed moodle 1.9 on windows 2k3 with mysql three weeks ago and is was running well until last week when i started getting session expired / timed out warning at the login page. i emptied the session files in the session folder in moodledata folder and and sessions in php. after restarting my server i can login again.

unfortunately, the problem pop up again today. i've tried the same method...but failed. try to install a fresh moodle 1.9...still cannot login. then i uninstalled everyhing and try installing moodle 1.7 and the same problem happen. now i can't login at all......

what is happening...i have another copy of moodle 1.7 running well with apache on windows xp 

please....really need help....

In reply to Sankar R

Re: Windows server: session error in moodle 1.9 in windows

by Iñaki Arenaza -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers

If you don't get a page where you need to type the admin password (aswell as another couple of screens where you need to input some details about your moodle site), then the installation is not completing, so you hava a partially-installed moodle and anything can happen.

You should try to discover why it's failing (as I don't have a clue).

Saludos. Iñaki.