Session management
  • 06 Dec 2024
  • 1 Minute à lire
  • Sombre
    Lumière
  • PDF

Session management

  • Sombre
    Lumière
  • PDF

The content is currently unavailable in French. You are viewing the default English version.
Résumé de l’article

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(..);

Cet article vous a-t-il été utile ?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Ozzy, facilitant la découverte de connaissances grâce à l’intelligence conversationnelle