[mapguide-users] How to check if session is expired?
François Van Der Biest
francois.van-der-biest at onf.fr
Tue Sep 5 02:48:34 EDT 2006
Hi Jackie,
You can catch the MgSessionExpiredException, this way :
try{
//your code
}
catch (MgSessionExpiredException $e){
echo "<em>Session expired</em>";
}
And of course, you can increase the delay before your session expires on
the "configure server" web page (MapGuide Site Administrator)
Regards,
F.
Jackie Ng a écrit :
> Hi all,
>
> Is there a way to check if a given MapGuide session ID has expired or
> not? I am experiencing this annoying problem of the mapguide session
> expiring after about 10 mins, forcing me to do a manual refresh of the
> browser. Can I do something like this?
>
> string sessionId = Request.QueryString["sessionID"];
> if( sessionId is no longer valid)
> {
> sessionId = CreateSession();
> ...
> }
>
> Regards,
>
> Jackie Ng
>
> AEC Spatial Pty Ltd. / AEC Systems Pty Ltd.
> SYDNEY - MELBOURNE - BRISBANE - PERTH - ADELAIDE - HOBART
>
> A.B.N: 32 075 809 451
>
> Level 4, 37-41 Prospect St. Box Hill, Victoria, 3128
>
> Phone: 1300 368 609
> Fax: 1300 362 140
>
> www.aecsystems.com.au
> jackie.ng at aecsystems.com.au <mailto:jackie.ng at aecsystems.com.au>
>
>
More information about the Mapguide_users
mailing list