Is it possible to get a HttpSession object by session ID, which is submitted to servlet as a hidden input field? I cannot go for session management by cookie because the device will not support cookies, or by URL rewriting because the session ID shouldn't be displayed in URL. In short, how can I do session management using hidden input fields?
Get HttpSession by session ID which is submitted as hidden input field
862 Views Asked by Ahamed At
1
There are 1 best solutions below
Related Questions in SESSION
- Multiple Processes, Multiple Processors, Single Priority Queue - Java Thread-Safe and Concurrency -
- Securing routes with sessionStorage in NextJS
- Cant handle Session's cookie when Safari/iOS
- Quart_Sessions Redis deletes keys and create backups instead
- I cannot get ID from session in GET method in Next.js 14
- I am new to flutter, just trying to set and get logged in user's session but maybe I am missing something
- I'm going nuts with Heroku session management issues
- Have a problem with get session in nextjs
- Session custom property getting undefined when calling Node js API from Javascript fetch
- Best Approach for Preserving User Input Across Blazor Pages in ASP.NET Core Application with User-Specific Data Storage
- spring security + form login + redis session storage -> keep coming out anonymous User
- Check user login in backend
- Next.js Middleware for Session Authentication Redirects: Errors Encountered
- Ansible prompt "No existing session" in manual executing the playbook
- Running a program on different computers with different users that access a central database simultaneously - VB.NET XAMPP/MySQL
Related Questions in SERVLETS
- java ee jdbc jstl servlet connection to db
- IOException parsing XML document from ServletContext resource What throws this exception in my SpringBoot RESTweb service?
- How can i connect my 4 objects in my jsp file so it can run perfectly
- Best Practice to skip URL pattern's from getting applied servlet filter
- How to accurately replace scripts / html before saving data from servlet to database
- Servlet not displaying data obtained from dao
- flutter Multipart file upload server side error: Unable to process parts as no multi-part configuration has been provided
- Read an image file using okhttp3.RequestBody in java and send it to client using HTTPServletResponse
- Unexpected servlet config parameter contextConfigLocation=<NONE>
- The servlets named [ClassName] and [com.example.ClassName] are both mapped to the url-pattern [/ClassName] which is not permitted
- How to Use an External JAR Offline in a Maven Project for Servlets Without Internet Access?
- session.invalidate() is sometimes not working and not destroying the session object. What should I do?
- Database ConnectionError
- In a web.xml, can the url-pattern of servlet-mapping containing more than one path component? (e.g. /path/to/*))
- How to update the resource property using the valuemap in the Sling servlet?
Related Questions in HTTPSESSION
- Error: Cannot invoke "jakarta.servlet.http.HttpSession.getAttribute(String)" because "session" is null
- spring security + form login + redis session storage -> keep coming out anonymous User
- session.invalidate() is sometimes not working and not destroying the session object. What should I do?
- How to maintain Session Management in Servlets
- How to share HttpSession between pages with Playwright Java
- session not invalidated properly getting error UT000010: Session is invalid
- How to create persistent Cookie in servlet (Java) difference between the non-persistent cookie and HttpSession
- transfer of an HttpSession with some non-Serializable attributes between cluster nodes
- Field httpSession in required a bean of type 'javax.servlet.http.HttpSession' that could not be found
- ASP.NET Core 6.0 / Razor pages / add info about currently logged in user to the Session
- Swift HttpSession decode arrays
- Returning response data from HttpSession post
- Can a python requests.Session break? If yes, what should I do?
- Check Keycloak SSO session presence from another domain
- Spring Boot creates new JSESSIONID on each request
Related Questions in SESSIONTRACKING
- Is it possible for a hacker to impersonate a user by stealing session token and then faking the user-agent, IP and other details?
- How does the servlet know that the browser has disabled cookies?
- How to track UTM tags in App Store URLs
- Forwarding a request from one servlet to another using Request dispatcher
- Is there app-level opt out flag for Google Tag Manager to be set in an iOS app?
- How to specify what should and shouldn't be tracked as a session (not event) when we add Google Analytics to an iOS app
- HTTP session tracking through base URL "resource"?
- Session tracking does not persist
- Urlrewriting using Servlet
- Is there a Session Timeout Exception in Spring Security?
- Using Session Tracking for Multipage Form in PHP
- NullPointerException when implementing session tracking
- Trouble in session logout
- Session tracking in servlets and jsp
- How a server can make a session with a client in RMI
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If you use a hidden field for your session ID in a GET form, or query parameters in a link, the session ID will be visible in the URL.
To do what you want, you'll have to exclusively use POST forms, or AJAX. What kind of device would no support cookies but support JavaScript?
If you still want to go this way, I'm afraid you'll have to reimplement session handling yourself, or modify the session handling code of your web container.