IdeaBlade DevForce 2010 Help Reference
SessionKey Property
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityManager Class : SessionKey Property



Returns a key identifying the current user session.

Syntax

Visual Basic (Declaration) 
<ObsoleteAttribute("Will be removed after 9/1/2012.  Use AuthenticationContext.SessionKey instead.")>
Public ReadOnly Property SessionKey As Guid
Visual Basic (Usage)Copy Code
Dim instance As EntityManager
Dim value As Guid
 
value = instance.SessionKey
C# 
[ObsoleteAttribute("Will be removed after 9/1/2012.  Use AuthenticationContext.SessionKey instead.")]
public Guid SessionKey {get;}
C++/CLI 
[ObsoleteAttribute("Will be removed after 9/1/2012.  Use AuthenticationContext.SessionKey instead.")]
public:
property Guid SessionKey {
   Guid get();
}

Remarks

Applications can retrieve the SessionKey after a login with credentials is made and use it to call Login(Guid) later. This is most useful in ASP.NET applications where an EntityManager is constructed only for the lifetime of a request. The SessionKey allows for passing or saving to session state a lightweight token which allows the user session to be recreated without requiring that credentials be reentered.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.