[mapguide-users] Session timeout in viewer samples
Alain Lebatard
alain.lebatard at autodesk.com
Wed Mar 22 18:32:40 EST 2006
When the session expires, the map state is lost, which includes the
current scale, the selection, the temporary layers the application might
have created (such as buffer layers), ...I don't see anything that can
be done about it.
However both Joel's suggestions are valid. Extending the session timeout
will allow your PC to stay idle for a longer time. As far as I know the
sessions are not managed in memory so increasing the session timeout
should just increase the disk space used by the sessions.
The client can also handle its own timeout and force a refresh of the
main frame when the timeout expires. That will cause a new session to be
created so the current map state will be lost, but at least user won't
get this ugly "session expired" error. The timeout needs to be reset
when the user moves the mouse for example, so this mechanism needs to be
hooked up in the viewer.
Alain
_____
From: Joel Carranza [mailto:jec at gatekeeper.com]
Sent: Wednesday, March 22, 2006 3:11 PM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] Session timeout in viewer samples
I am having this problem as well. Seems like the only solution will be
to have a periodic refresh of the map?
Note that you can change Session timeout and Session timer parameters in
administration pages
http://localhost/mapguide/mapadmin/servicesproperties.php
Not sure what the difference between the two is, but you could increase
them. May has an adverse effect on performance though.
--Joel
_____
From: Butler, Juan P [mailto:jpbutler at co.pinellas.fl.us]
Sent: Wednesday, March 22, 2006 2:29 PM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] Session timeout in viewer samples
Yeah...I'm seeing that with the app I'm creating now. Error states that
the Session has expired or is invalid.
Will turning off the password protection solve this problem?
- Juan
_____
From: Jason Birch [mailto:Jason.Birch at nanaimo.ca]
Sent: Wednesday, March 22, 2006 5:18 PM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] Session timeout in viewer samples
Hi,
I understand that the viewer samples initiate a session when they are
initially loaded using hardcoded values. This works fine, but if you
leave the map alone for too long (the DWF version anyway) it times out
with an error message, and the only way to get it back appears to be to
refresh the browser.
I can see this being an issue with our front counter PCs which typically
have MapGuide loaded in a browser window all the time, but that window
might not be used for hours at a time.
Any ideas on how to deal with this?
Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide_users/attachments/20060322/0ba77174/attachment.html
More information about the Mapguide_users
mailing list