Close site too slow with many open login sessions

Bug #745345 reported by Richard Mansfield
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Low
Richard Mansfield

Bug Description

Submitting the 'close site' button in the admin section tries to close all the open sessions, one by one, using session_destroy(). Turns out this is okay for suspending a single user, but it wasn't a great idea when you're closing the site & need to wipe out lots of sessions.

Maybe we should change it to just delete the session files from disk; it'd be faster. Don't know enough about php sessions to be sure whether it'd work; I guess it's possible they're just cached somewhere and get written out again periodically.

Changed in mahara:
assignee: nobody → Richard Mansfield (richard-mansfield)
Changed in mahara:
status: Confirmed → In Progress
Changed in mahara:
status: In Progress → Fix Committed
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.