startsession
Startsession starts a stateful session for the current user.
Most WebAPI commands (except for the selection commands) can in principle be executed outside of a session. However, the advantage of working within a session is that the connection to the SQL Server Axiell Collections database will be reused: information about the connection will be stored on your computer in the form of "cookies" until the session ends. This increases performance because now the database connection won't have to be opened and closed with each call to wwwopa.ashx (which is time consuming).
To be able to use sessions, your browser has to be able to accept cookies, and the sessionState setting has to be present in the web.config file of wwwopac.ashx. The default setting is: <sessionState mode="InProc" cookieless="UseCookies" timeout="20"/>, which indicates that cookies will be used and that they will be deleted automatically after 20 minutes of idle time. This setting will usually also implicitly cause a session to start when a user starts making WebAPI requests: it depends on the internet browser of the user and its settings, whether this is the case or not. In Mozilla Firefox, and in Microsoft Internet Explorer only when in compatibility mode, sessions are started automatically and implicitly. Only when the sessionState setting is not present in the web.config file, you will have to start a session explicitly.
Syntax
command=startsession
Examples
- no further description -
https://webapi.axiell.com/demowebapi/wwwopac.ashx?database=collect.inf&command=startsession

