<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Wrap long-running operations in session_write_close/session_start</title> 
  <pubDate>Mon, 06 Apr 2026 20:23:13 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/7422</link> 
  <atom:link rel="self" type="application/rss+xml" title="Wrap long-running operations in session_write_close/session_start" href="https://bugs.horde.org/ticket/7422/rss" /> 
  <description>Wrap long-running operations in session_write_close/session_start</description> 
 
   
   
  <item> 
   <title>To avoid blocking operations in other tabs/browser windows, </title> 
   <description>To avoid blocking operations in other tabs/browser windows, or in DIMP&#039;s case, simply other ajax requests, we should close the session (session_write_close) whenever possible before a long running operation. We do this some places, but haven&#039;t done it in others because of the need to update the session later. Turns out you can re-open the session by calling session_start (we&#039;ll probably need Horde::setupSessionHandler) again, as long as headers haven&#039;t been sent.



Especially with DIMP I think this would be useful to try. The thing I noticed locking on earlier that brought it to mind was emptying a large mailbox; DIMP generating a message list might be another. I&#039;m sure there are more.</description> 
   <pubDate>Wed, 01 Oct 2008 20:52:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7422#t49340</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Ticket #7422</title> 
   <description>Changes have been made in Git for this ticket:

Ticket #7422: Test out session close/reopen for potentially long operations

http://git.horde.org/diff.php/imp/lib/Ajax/Application.php?rt=horde-git&amp;r1=9ca3d532fced9968ec808a3ca7605c862ba28bbc&amp;r2=9de9ed837ec6181bb1de011156f7c6cef44c58f5</description> 
   <pubDate>Tue, 07 Sep 2010 08:27:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7422#t59896</link> 
  </item> 
   
  <item> 
   <title>Added a test use case for message listing in dimp.  Will obs</title> 
   <description>Added a test use case for message listing in dimp.  Will observe for unwanted side-effects, etc.</description> 
   <pubDate>Tue, 07 Sep 2010 08:27:57 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7422#t59897</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Ticket #7422</title> 
   <description>Changes have been made in Git for this ticket:

Ticket #7422: Improve session close/open in DIMP AJAX actions

http://git.horde.org/diff.php/imp/lib/Ajax/Application.php?rt=horde-git&amp;r1=cdaecae24590b313078afb896c4fac2d7da1871f&amp;r2=22f33b1be19a3b3db62911f7b4ae4a93384ad135</description> 
   <pubDate>Thu, 30 Sep 2010 20:50:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7422#t60223</link> 
  </item> 
   
  <item> 
   <title>Seems to be working.  Improved a bit: only close/open when d</title> 
   <description>Seems to be working.  Improved a bit: only close/open when doing a straight viewport listing and do a close/open when doing an initial list of mailboxes.

Closing ticket - there may be other places this is useful, but that needs to be determined on a case-by-case basis.</description> 
   <pubDate>Thu, 30 Sep 2010 20:51:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7422#t60224</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
