Re: File uploads - progress reporting gets stuck short of 100%



John Geddes wrote:
Jerry Stuckle wrote:

You can access the session and get some quick information - you just need to close the session before anyone else can access the info. You just can't reopen it.

That's really helpful. I've just tried a dummy application with a user page with two iframes - one that reloads a timer every second (to simulate a progress-checking page), and the other frame used for loading a page with a sleep(5) statement in it (to simulate a background processing page). If each page closes session writing, then the timer operates seamlessly. If I don't clear the session writing on the processing page, the timer stops when the "processing" page loads, and waits for the sleep to finish before resuming. Just as you suggest.

But the "processing" page on my real application is doggedly sticking to single-thread operation even after a session_write_close() statement. What other conditions can force php to run in single-thread mode? Is there any function to test for single-thread operation?

John Geddes


Nope, sounds like someone still has the session open. You session is closed in all other pages, correct?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================

.



Relevant Pages

  • Re: File uploads - progress reporting gets stuck short of 100%
    ... I've just tried a dummy application with a user page with two iframes - one that reloads a timer every second, and the other frame used for loading a page with a sleepstatement in it. ... If each page closes session writing, ... If I don't clear the session writing on the processing page, the timer stops when the "processing" page loads, and waits for the sleep to finish before resuming. ... But the "processing" page on my real application is doggedly sticking to single-thread operation even after a session_write_closestatement. ...
    (alt.php)
  • Re: Threading - Is this Ok?
    ... panel using a Timer control. ... running code takes maybe 10 seconds to execute (long enough that I ... I think you can put Status into Session state and pass Session to a ... store reference to thread in Session state when you start the thread ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Threading - Is this Ok?
    ... panel using a Timer control. ... So client will not see any progress. ... requests to server to refresh progress. ... I think you can put Status into Session state and pass Session to a ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Do IIS applications "go to sleep"?
    ... client side. ... This type of cookie is not disabled when one disables client ... using these session items. ... need your timer when you extend a session timeout to five days. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Threading - Is this Ok?
    ... panel using a Timer control. ... So client will not see any progress. ... requests to server to refresh progress. ... I think you can put Status into Session state and pass Session to a ...
    (microsoft.public.dotnet.languages.csharp)