Share via


How to change Session Timeout Period in IFD Enabled Dynamics CRM 2011

By using Windows Power Shell, you can change the TokenLifetime property for the relying party objects :
Steps : 

  1.     Open a Windows PowerShell prompt.

  2.     Add the ADFS2.0 Windows PowerShell snap-in:
            PS > Add-PSSnapin Microsoft.Adfs.PowerShell

  3.     Configure the relying party token lifetime:
    PS > Get-ADFSRelyingPartyTrust -Name:"relying_party_name"
    Output Like :
    AutoUpdateEnabled     : True
    DelegationAuthorizationRules   :
    EncryptionCertificateRevocationCheck : None
    <snip/>
    TokenLifetime      : 0
          Note : You can get the relying_party_name from here : 
    Go to ADFS Managment -> Expend Trust Relationships --> Select Relying Party Trusts
    Then you will get the added relying party entries into the right pane.

  4. PS >Set-ADFSRelyingPartyTrust  -TargetName "relying_party" -TokenLifetime 480
        Here i am setting up TokenLifetime to 480 minutes , that means the session will expire after 480 min (8 hrs).