DWR

setActiveReverseAjax creates a new ScriptSession but the previous one is not timed out

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 3.0.RC1
  • Fix Version/s: 3.0.RC2
  • Component/s: None
  • Description:
    Hide
    After the client HTLM page loads and executes engine.js (via <script> tag in <head>) and after __System.pageLoaded() is called, on the server side, ServerContext registers a new ScriptSession (and its scriptSessionId is set back via handleNewScriptSession() on the page).
    But, after dwr.engine.setActiveReverseAjax(true) is called at some point later (e.g. on body's onload event handler), a new invocation of handleNewScriptSession() sets the new scriptSessionId. However, on the server side, ServerContext reports two ScriptSessions, that is, the previous ScriptSession is not being timed out.
    Show
    After the client HTLM page loads and executes engine.js (via <script> tag in <head>) and after __System.pageLoaded() is called, on the server side, ServerContext registers a new ScriptSession (and its scriptSessionId is set back via handleNewScriptSession() on the page). But, after dwr.engine.setActiveReverseAjax(true) is called at some point later (e.g. on body's onload event handler), a new invocation of handleNewScriptSession() sets the new scriptSessionId. However, on the server side, ServerContext reports two ScriptSessions, that is, the previous ScriptSession is not being timed out.

Issue Links

Activity

Hide
David Marginian added a comment - 01/Dec/09 6:57 PM

This is related to DWR-364

Show
David Marginian added a comment - 01/Dec/09 6:57 PM This is related to DWR-364
Hide
Mike Wilson added a comment - 15/Sep/10 11:43 AM

This issue has now been resolved and the script session id is now obtained in a different way that avoids duplicates. See description of changes in DWR-26.

Show
Mike Wilson added a comment - 15/Sep/10 11:43 AM This issue has now been resolved and the script session id is now obtained in a different way that avoids duplicates. See description of changes in DWR-26.

People

Dates

  • Created:
    02/Feb/09 1:44 PM
    Updated:
    15/Sep/10 11:43 AM
    Resolved:
    15/Sep/10 11:43 AM