Forums | Mahara Community

Support /
Mahara session is broken after upgrade mahara from 16.10.3 to 17.10.6


william chan's profile picture
Posts: 38

26 June 2018, 19:58

Dear

Existing I use moodle 3.3.1

I upgrade mahara from 16.10.3 to 17.10.6.

However I find the following issues

 

Step to reproduce

1) Create one mahara assingment in one Moodle course

2) login in as student , click on this mahara assignment from this course , then click on "... from list below.. or click here" link(step1.png)

step1.png

3) in mahra page, click more "return to LU moodle"

step2.png

4) Back to moodle course overview page.

5) click on mahara assignment from this course again , then click on  ""... from list below.. or click here" link again.

6) in mahara page , mahara login page is shown instead with this message "You hae been logged out successfully"

step3.png

I also upgrade moodle mahara assignment to latest version but still have same issue.

 

Please advise how to fix it.

                                  William

william chan's profile picture
Posts: 38

28 June 2018, 2:27

Dear all,

  Any suggestion

I want to fix it ASAP.

Thx

        William

Ralph Ballier's profile picture
Posts: 121

28 June 2018, 4:10

Hello William,

did you already try to create a new assignment in the Moodle course after the update of mahara?

william chan's profile picture
Posts: 38

28 June 2018, 12:14

Yea. I have created new assignment in one of existing moodle course to test. But have same issue.

william chan's profile picture
Posts: 38

28 June 2018, 18:13

Dear ,

can you give me the hink  which file handling this session so that we can investigate this.

 

                         William

william chan's profile picture
Posts: 38
Robert Lyon's profile picture
Posts: 776

04 July 2018, 10:21

Hi William,

In the htdocs/auth/user.php file within the 'private function store_sessionid()'

in that function try changing

 delete_records('usr_session', 'usr', $this->get('id'));

to

 delete_records('usr_session', 'session', $sessionid);

We used to delete the old session based on session id and leave other sessions for the user active but now we delete it based on user. That way older user sessions don't hang around if one closes their browser without logging out.

But it looks like when one jumps from Moodle a 2nd time it fires up a new sessionid for the user and deletes the expected one.

Please try out the change and see if it helps

Cheers

Robert

 

william chan's profile picture
Posts: 38

04 July 2018, 13:09

Dear  Robert Lyon ,

 

Thanks.

I just apply it and the issue is solved.

I think it is a bug and should be submit as patch aslo.

Regards,

                       William

Robert Lyon's profile picture
Posts: 776

06 July 2018, 9:13

Hi William,

 

Yeah I agree so I've begun a patch to fix the problem https://bugs.launchpad.net/mahara/+bug/1780328

Cheers

Robert

9 results