Administration commands require a session ID to be kept and passed to all administration requests. Furthermore, the administration object must be defined for each user’s session. Upon successful logon, the administration object must keep a record of the session ID returned at logon.
Ensure that upon successful login the AdministrationHandler object is put into the HTTP session. The following commands can be used to manage the session ID:
AdministrationHandler handler = new AdministrationHandler();
handler.logon(…);
Session[“AdminSessionHandler”] = handler;Pull the AdminSessionHandler object out of the session when executing administration commands.
AdministrationHandler handler = Session[“AdminSessionHandler”];
handler.getUserHandler.create(..);