I am using a token handed to me by the AGS token service to connect to secured AGS services. The token will time out in one hour.
When the token times out, I want the user to be redirected to a login page. Without this redirect, the user would otherwise just get a blank map because the AGS map services don't return a valid map. There does not a property of the map service that tells me that the token has timed out.
The token, being a string, is meaningless, other that it is used as a property of the map service (e.g., appended to the map service URL).
So the question, how can I tell if the token is timed out?
I have enough events that I can routinely troll for a timed-out token - that is if the computational expense is not too great.
--TIA