Session time out issue

Session time out issue

Vijay N發表於
Number of replies: 3

Hi All,

LAMP , Moodle 1.9

What are the permission levels needs on the moodle folder and moodledata folder::

This is a redhat linux server and the following has been set on the moodledata folder: rwxr-sr-x

while moodle folder has: rwxrwsr-x

I keep getting the session time out issue when navigating between moodle menu pages. I am not sure if this is a permission issue on the folders. 

The specific error is : A server error that affects your login session was detected. Please login again or restart your browser

Does anyone know the specific permission levels for this please?

Vijay

評比平均分數: -
In reply to Vijay N

Re: Session time out issue

Adolfo Franco發表於

Moodledata must be 777. Generally this A server error that affects your login session was detected. Please login again or restart your browser error has to do with cookies. If you have more than one instance of Moodle, you must set a prefix for the cookie of your Moodle site. Of course, one can reman default (none) and the other instance(s) you change. I hope this helps.

In reply to Vijay N

Re: Session time out issue

Visvanath Ratnaweera發表於
Particularly helpful Moodlers的相片 Translators的相片
Hi Vijay

There are a couple of problems:

1. You say only RedHat but not how exactly you installed Moodle. Did you follow an tutorial from http://docs.moodle.org/19/en/Category:Installation ? If some thing else, what?

2. Do you still have $CFG->wwwroot = 'https://'.$_SERVER['HTTP_HOST']; ? I'm referring to the warnings you received in http://moodle.org/mod/forum/discuss.php?d=209136.

3. File permission patterns like rwxr-xr-x don't mean any thing unless you specify the owner and all the groups he belongs to. In the case of moodledata, also the owner of the web server process is important. See http://docs.moodle.org/19/en/Creating_Moodle_site_data_directory#Ownership_and_permissions.
In reply to Visvanath Ratnaweera

Re: Session time out issue

Vijay N發表於

I think I found out the problem, the cookie prefix (moodle) was set in 2 moodle sites. I gave a different name for the prefix and the session error message stopped. Its working normal again.

TO answer the above questions, the wwwroot path has been renamed to give the full url path (although I donot think that was the problem in the first place as there was only one site running on the server)

 

File permission have not been changed since my last post.

 

It seems to be working normal now. Moodle prefix seems to have fixed the issue. So to conclude the wwwroot folder can still use

 $CFG->wwwroot = 'https://'.$_SERVER['HTTP_HOST']; // No problem using this method when running a single site on a server.

Everything Ok now.