'Replacement for the HttpServletRequest.GetSession() in JavaScript
Currently, we are using a legacy application where the Java HttpServletRequest.GetSession() function to get the session from the Client browser where the session is set from the Browser's parent tab.
Now we need to access the same session information [example, we have Token in the session] using our new application with decoupled Microservice architecture [ UI-React JS]. Whether we can able to access the session from Front End?
Appreciate your suggestion on this.
Thank you !
Solution 1:[1]
input is the return value of $(). It is a jQuery object not a DOM object. To access the name property of the underlying DOM object, use the prop method.
input.prop('name')
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Quentin |
