How to Increase the Token Timeout from 10 Days

2005
0
01-19-2012 12:13 PM
Labels (1)
by Anonymous User
Not applicable
0 0 2,005
By default, anyone using services that take advantage of token based security will need to get and hardcode a new token every 10 days. Without an updated token, web applications using the secured services will not work and you will not have access to your secure map services. If you dread having to get a new token every 10 days to keep your applications working, there is a solution! The following steps describe how to increase the token timeout past 10 days.11.jpg

There are a couple of ways to edit the time limit for a token.Method AChange the token expiration period for both 'Short-lived' and 'Long-lived' tokens using the ArcGIS Server Manager.
  1. Log into the ArcGIS Server Manager.
  2. Go to Security and then go to Settings.
  3. Under the Token Service heading, click the Settings button.
  4. In here, you can change 'Long-lived tokens' to 365 days (or any other length of time) then click Save.
  5. The next time you open the ArcGIS Token Service web page you should be able to set the expiration date to 365 days.2.jpg
Method B
Edit the web.config file to change the value of the 'Long-lived’ tokens to 365 days.
  1. Browse to the web.config file (C:inetpubwwwrootArcGISTokens).
  2. Open the web.config file in a text editor.
  3. In the appSettings tag, look for . The default value here (highlighted in blue) is 14400 minutes, or 10 days.3.jpg
  4. Increase this value anywhere up to 525600 minutes (365 days).
  5. Save the file and use it to replace the web.config file that already exists on your web server.
Nakul B. - SDK Support Analyst