You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deleting a session, the SessionManager::delete() method is used. However, this method only deletes session registers from access_url*, extra_field* and session_rel* tables. There is no management of the track_e_* tables nor all the c_* tables.
Deleting a session should do a thorough clean-up to avoid leaving resources hanging.
To find the list of resources, do a --no-data dump of a Chamilo database and look for all *session_id or id_session fields. This below is a list from v1.9:
(normally all id_session fields were transformed to session_id in 1.10).
It also should include the proper deleting, on disk, of session-specific documents, assignments, etc.
There is no rationale for leaving the data there. A session can be "expired and closed" in a way that does not get in the way of anyone, so no need to delete if we want to keep the data there. When a session is deleted, it's because we really want it to be deleted. If it's a mistake, then the admin should use backups to restore it.
Expected behavior
SessionManager::delete() should delete all resources related to the deleted session.
Steps to reproduce
Create a session with a course (write down the session ID from the URL)
Enter the course+session
Create a document
Go to admin > sessions list > delete session
Select * from c_document where session_id = $id => there shouldn't be anything, but there is.
Same thing with track_e_course_access, etc
Chamilo Version
1.11.x 20170621
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Current behavior
When deleting a session, the SessionManager::delete() method is used. However, this method only deletes session registers from access_url*, extra_field* and session_rel* tables. There is no management of the track_e_* tables nor all the c_* tables.
Deleting a session should do a thorough clean-up to avoid leaving resources hanging.
To find the list of resources, do a --no-data dump of a Chamilo database and look for all *session_id or id_session fields. This below is a list from v1.9:
(normally all id_session fields were transformed to session_id in 1.10).
It also should include the proper deleting, on disk, of session-specific documents, assignments, etc.
There is no rationale for leaving the data there. A session can be "expired and closed" in a way that does not get in the way of anyone, so no need to delete if we want to keep the data there. When a session is deleted, it's because we really want it to be deleted. If it's a mistake, then the admin should use backups to restore it.
Expected behavior
SessionManager::delete() should delete all resources related to the deleted session.
Steps to reproduce
Chamilo Version
1.11.x 20170621
The text was updated successfully, but these errors were encountered: