Secure forms is set to NO and I have run the session test script in moodle and it says sessions are working properly.
I jacked the session lifetime up to 4 hours in the variables page in moodle and with the php_value session.gc_maxlifetime 14400 in the .htaccess file (in my public_html directory - where the webserver looks, not my moodle .htaccess). Looking at phpinfo shows 14400. No dice, however - problem still exists.
I am wondering if the problem has to do with the exact domain name I am using. If I look at my HTTP_HOST varaible in phpinfo, it says mydomain.com. The SERVER_NAME variable is www.mydomain.com, however.
In my redirect to my Moodle site in my .htaccess in my public_html directory, I have:
|Redirect permanent /index.htm http://www.mydomain.com/moodle/index.php|
and in the config.php file for Moodle, I have:
|$CFG->wwwroot = 'http://www.mydomain.com/moodle';|
I am stumped as to what could be going on. It does not make a difference if the student or I log on with www.mydomain.com or mydomain.com - the session still times out quickly.
I know there have been posts about this type of problem in the past. I have read them, but was not able to solve my problem based on those discussions.
Any ideas would be greatly appreciated. Thanks!