---
title: Setting a token lifetime
description: Specify a token's timeframe of validity before and after issuance.
component: pingfederate
version: 13.1
page_id: pingfederate:administrators_reference_guide:help_wstrustsptasklet_wstrusttokenlifetimestate
canonical_url: https://docs.pingidentity.com/pingfederate/13.1/administrators_reference_guide/help_wstrustsptasklet_wstrusttokenlifetimestate.html
llms_txt: https://docs.pingidentity.com/pingfederate/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: July 5, 2022
section_ids:
  about-this-task: About this task
  steps: Steps
---

# Setting a token lifetime

Specify a token's timeframe of validity before and after issuance.

## About this task

Standards require a window of time during which a security token is considered valid. Each token has a time-stamp XML element as well as elements indicating the allowable lifetime of the token, in minutes, before and after the token time stamp.

## Steps

1. Go to **Applications > Integration > SP Connections**.

2. In the **WS-Trust STS** window, click the **Token Lifetime** tab.

3. Override the default values for the fields in the following table.

   **Token timeframe parameters and descriptions**

   | Field              | Description                                                                                                            |
   | ------------------ | ---------------------------------------------------------------------------------------------------------------------- |
   | **Minutes Before** | The amount of time before the SAML token was issued during which it is to be considered valid. The default value is 5. |
   | **Minutes After**  | The amount of time after the SAML token was issued during which it is to be considered valid. The default value is 30. |

4. Click **Next**.
