Bug 190

Summary: [Widget] ROI widget(s) behaviour when session times out
Product: Chameleon Reporter: Jason Fournier <jfournier@dmsolutions.ca>
Component: WidgetAssignee: chameleon-dev <chameleon-dev@lists.maptools.org>
Status: CLOSED FIXED    
Severity: minor    
Priority: P3    
Version: 1.99   
Target Milestone: 1.99 beta 2   
Hardware: PC   
OS: Windows NT   
Whiteboard:

Description From 2004-01-23 18:09:25
If you attempt to use the suite of ROI tools after your session times out in
Chameleon 1.1+ you receive a broken image icon in Netscape 7.1.  You do not
receieve a warning that your session has timed out and that your application
requires restarting (presumably due to no page submission from ROI interaction).

Is there a way to alert the user that the session has timed out?

Sugegstion from Paul S.:

use setTimeout with the PHP session timeout value.  setTimeout would call an
alert('your session has ended'); ... or something equivalent.
------- Comment #1 From 2004-04-05 15:35:29 -------
another possibility:

in the ROIRenderer.php that produces the image, render a string saying that the
session has expired.  I am sure that the broken image comes from some php
warnings and could be trapped.  To be addressed for 1.99
------- Comment #2 From 2004-04-08 08:37:56 -------
updated version to 1.99
------- Comment #3 From 2004-04-16 09:36:07 -------
fixed in cvs.
------- Comment #4 From 2004-06-22 15:24:08 -------
Who can verify this bug and has Netscape 7.1. It seems to work in Firefox 0.9

:)
------- Comment #5 From 2004-06-22 16:56:01 -------
sorry, does not work in firefox 0.9..... the session ran out and tried to make
another rectangle and got a broken image.

I jumped the gun again.
------- Comment #6 From 2004-07-08 16:29:13 -------
this was fixed, a change to another part of chameleon that handled invalid
sessions was causing text to be returned when previously it wasn't.
------- Comment #7 From 2004-07-14 13:35:55 -------
When session expires during the use of the ROI tools on:

http://localhost/chameleon/samples/sample_roi.phtml

When the user tries to draw a new rectangle roi, a small gray image "session
expired" shows up and all roi drawn polygons disappear.

Working and Verified

beta 2 20040709
Windows ie 6
------- Comment #8 From 2004-07-14 14:59:39 -------
sorry last comment was for the windows 2000 regression test on beta 2 20040709
------- Comment #9 From 2004-07-15 08:49:11 -------
Still there on Fedora Core 2 Chameleon 20040709.  I was able to draw multiple
ROI eventhough session expired.
------- Comment #10 From 2004-07-15 09:08:34 -------
yes I was able to draw rectangles, but they would disappear once I completed the
draw. Is this the case on Linux, or does the polygon you drew post session
expiring stays on the map?

If yes to the polygon not being saved on the map. Then I think this is ok, for
this bug since the issue was that when the session expired you got a broken
image map when trying to use the ROI tool. Where the solution was to have the
"session expired" label at the top left of the map explains clearly to the user
what has happened.

If you think the user should not even be able to draw a rectangle post draw than
maybe this should be a new bug to be discussed and/or fixed for beta 3.??

------- Comment #11 From 2004-07-15 20:03:35 -------
Yes Chris, ROI still appears on the map after session expired.  I could redo the
test again monday.
------- Comment #12 From 2004-07-15 20:39:41 -------
Norm, how did you verify that your session had expired?  It is highly unlikely
that you would be able to generate an ROI image if the session had expired as
the information to draw the ROI is stored in the session (which was the original
problem).  The only possible explanation that I can think of is that they
session expiry logic is broken on linux.  But in either case, you are not seeing
this bug any more so it can be closed.  If the ROI can be drawn after session
expired on Linux, that should be a separate bug since it is unrelated to the
original problem stated in this bug.
------- Comment #13 From 2004-07-19 10:46:27 -------
I agree with you both (Chris and Paul) that is not related to this bug.  This is
a different bug.  When the session expired a message is displayed:  "Your
session has expired.".

I changing this bug status to "Fixed" and "Closed".
------- Comment #14 From 2004-07-19 10:47:44 -------
Verified on Fedora Core 2 Chameleon 20040709 (already verified on Windows).