Select to view content in your preferred language

logout when page is reloaded

672
5
12-19-2013 05:27 AM
YonghaHwang
Deactivated User
Hi,

My web site provides secured GIS service using "esri/IdentityManager". But a user is always logged out when he refreshes the web page. Do we have any way for users to keep his session and to stay logged in after he refreshes (by pressing F5) the web page?

I'm using ArcGIS  server 10.1 / ArcGIS JS API 3.7.

Thanks in advance,
YH
0 Kudos
5 Replies
South_JordanCity_of
Frequent Contributor
Hi!
do you have any more info about this issue? We're having the same problem here..

Marc
0 Kudos
YonghaHwang
Deactivated User
Unfortunately, no.
Instead, we're currently using reload() for logout function.
YH
0 Kudos
MattLane
Frequent Contributor
I've implemented this sample with success, it holds the token info client side.
0 Kudos
YonghaHwang
Deactivated User
Thanks! It works like a charm.
But how can I implement logout with this feature?

When I use client side token, the code below does not destroy credential...

credential = IdentityManager.findCredential(server_url);
credential.destroy();
0 Kudos
MattLane
Frequent Contributor
Not sure, haven't tried that yet. I guess you could delete the cookie and reload the page.
0 Kudos