using Newtonsoft.Json;
using Sarand.BusinessMgr.Net.Standard.Base.App;
namespace Sarand.BusinessMgr.Net.Core.Web.App
{
//=======================================================================
public abstract class SbmSessionData_Web : SbmSessionData
{
//-------------------------------------------------------------------
///
/// Protected construction - for JSON deserialisation and non-session data (eg. prior to logon).
/// - Session index persistent to record sequence in which Session Data objects created.
/// - Session index should be zero for non-session data, eg. background tasks.
///
protected SbmSessionData_Web(long sessionIdx, SbmSessionContext sessionContext) :
base(sessionIdx, sessionContext)
{
}
///
/// Session Data constructor - prior to storage against session.
///
protected SbmSessionData_Web(SbmSessionContext sessionContext) :
base(sessionContext)
{
}
//-------------------------------------------------------------------
// Properties.
[JsonIgnore]
public abstract bool KeepLoggedIn { get; }
//-------------------------------------------------------------------
}
//=======================================================================
}