#6251: [with patch, needs review] LogoutResource in sage/server/simple/twist.py
doesn't really log you out
----------------------+-----------------------------------------------------
 Reporter:  ddrake    |       Owner:  boothby             
     Type:  defect    |      Status:  new                 
 Priority:  major     |   Milestone:  sage-4.0.2          
Component:  notebook  |    Keywords:  simple server logout
 Reviewer:            |      Author:                      
   Merged:            |  
----------------------+-----------------------------------------------------

Comment(by ddrake):

 I've attached one attempt at some kind of solution. I noticed that the
 SessionObject never gets deleted, so I thought I would just remove it from
 the "sessions" dictionary. This does make the session unavailable from the
 simple server, but I thought it might not properly get rid of the
 worksheet...but it seems like it does. Perhaps when the SessionObject gets
 deleted from the sessions dictionary, the worksheet and so on all get
 garbage collected?

 The GC theory seems a bit plausible, especially since I noticed the line
 {{{sessions['test'] = session}}} in the file, which seems like some
 leftover debugging cruft...I deleted that line and things seem to work
 better, since now there isn't a spurious second reference to the session
 object.

 Here's a question: in the simple server, we create a worksheet, and to get
 rid of it, we simply delete its directory. Is that sufficient? My thinking
 is that it is, since we aren't creating the worksheet within the notebook,
 so there's no other record of the worksheet's existence; hence deleting
 the files removes all traces of the worksheet on disk. Is this correct?

 I've tested this some, and it seems to solve my problems. Please check
 this over!

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6251#comment:3>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to