Session Management
  • 10 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

The object stores the session ID returned by OneSpan Authentication Server on login. Instances of that bean must be persistent through the user’s HTTP session. The persistence should be handled by the application server; implementing this is best practice, Java EE standard defines various mechanisms for this purpose.

There are two different methods for this implementation:

  • You can encapsulate the AdministrationBean object in a stateful Enterprise Java Bean (EJB), which is supported by all major application servers. This permits the use of the bean in both servlets and JSP pages.
  • Alternatively, you can use the <jsp:useBean> directive, with the scope attribute set to session. However, this solution is suitable only when integrated in JSP pages, since it does not grant access to the bean in a servlet. This method is used in the sample site.

Integrators can handle the persistence by storing the object in the Java EE session object. However, this is not recommended since it causes a lot of additional work. For more information and implementation details, refer to the Java EE specification.


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