Location: Symbol Reference > Classes > TJwSecurityToken Class > TJwSecurityToken Properties > TJwSecurityToken.TokenSessionId Property
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecurityToken.TokenSessionId Property
Pascal
property TokenSessionId: cardinal;

TokenSessionId sets or gets the Session ID of the token. To set the value the token needs SE_TCB_NAME privilege. 

A write call on a Windows 2000 is ignored! A write call on needs the SE_TCB_NAME privilege. 

To set the SessionID in an existing token you need to create a duplicate first and set the ID of the duplicated token. Use CreateDuplicateExistingToken for this reason. 

See http://msdn2.microsoft.com/en-us/library/aa379591.aspx for more information.

Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!