httpsession « Session « Java Enterprise Q&A





1. Access session of another web application    stackoverflow.com

Is it possible to configure two separate web apps (WAR) in a J2EE application (EAR) to access a shared session context? Further info: I ended up creating a shared class from the EAR ...

2. Is HttpSession thread safe, are set/get Attribute thread safe operations?    stackoverflow.com

Also, does the object that is being set have to be thread safe in order to guarantee that we know what the state of the object stored in session is known. Also, ...

3. Can I turn off the HttpSession in web.xml?    stackoverflow.com

I would like to eliminate the HttpSession completely - can I do this in web.xml? I'm sure there are container specific ways to do it (which is what crowds the search ...

4. HttpSession Session ID different to FlexSession ID    stackoverflow.com

I have a Flex application which is served via a JSP page. In this page I output the session ID using HttpSession when the page is loaded:

System.out.println("Session ID: " + ...

5. Sessions in Restlet?    stackoverflow.com

I have just implemented my first Restlet application (finally :]) and now I'm onto a bigger question. I built a really simple resource called LoginResource, which allows a POST and a ...

6. how to implement custom http session in java?    stackoverflow.com

I will need to implement my own version of HttpSession in Java. I have found very little information which explains how achieve such a feat. I guess my problem is - how ...

7. Session Tracking thro HttpSession    coderanch.com

I am using HttpSession object in my project.When I use two browser Instances on same machine the same session is shared betn two instances. Dose it mean that u can not use multiple sessions on a single machine at the same time? I want to Open Different Session for the Different Instances on Same MAchine. I also want to seprate the ...

8. Session Tracking using HttpSession    coderanch.com

We know that session tracking uses cookies by default to associate a session identifier with a unique user. If the browser does not support cookies, or if cookies are disabled, you can still enable session tracking using URL rewriting. URL rewriting essentially includes the session ID within the link itself as a name/value pair. However, for this to be effective, you ...

9. HttpSession and session state    coderanch.com

Hi All, I want to confirm with the servlet experts out there that what I want to do is valid or if there is a better way, I would like to know that. My understanding of servlets is that they are sessionless. I have an object that I want to initialize in the doGet() method, but I want each user to ...





10. HttpSession API for Session Management    coderanch.com

11. Session Tracking with HttpSession    coderanch.com

httpsession is based on transient cookies i.e. the cookie dies when the browser is closed. Persisitent cookies are the which are stored in secondary storage. There is a limit to the number of cookies that be stored for a server. I guess it is 20 and size of each cookie is also limited. There is also security concern with using cookies ...

12. Persistent session and HttpSession...    coderanch.com

13. HttpSession vs Stateless Session bean    coderanch.com

Hi, I would like to know why one would use a stateless session bean rather than a http session to track the 'session' of a browser based user? The only reason I can think of to use a stateless session bean is if I want to persist session-related information to a database. Are there any other reasons, or is there something ...

15. HttpSession vs. Pseudo Session    coderanch.com

I guess you mean this Pseudo Session idea? You're trading memory for time since it will take longer to fetch these sessions from disk than from memory. You're also taking on the job of session continuity with the id on every URL. And this seemed to only store Strings (unless I didn't read to the end) so you give up storing ...

16. HTTPSession Vs Statefull Session Bean    coderanch.com

Actually they are entirely different. We use statefulle session ejb's when we want to store any kind of sate temperorly. This will have scope same to the scope of the object of that bean. But HTTPSession is having scope only on each session id made by the client. Moreover data carrying capability is limited. If you store too much data on ...





17. HTTPSession Vs Statefull Session Bean    coderanch.com

18. HttpSession and Session Bean    coderanch.com

19. Httpsession and user session timeout tracking.    coderanch.com

Dear all, I am trying to monitor user session and alert user that the session is about to expire. I do have client side solutions however I am wondering how can I inquire the Httpsession.getLastAccessedTime() (or similar ) method without renewing user session stats. In essence every time I access this method through servlet or jsp, the session is automatically extended ...

20. HttpSession session = request.getSession();    forums.oracle.com

AMARSHI wrote: Wel that is the property for all the variables which are made as final... i mean there isnt any specific reason of making a session as final apart from this. It's documentation, so that later, when you or somebody else is reading this code, it's clear that that variable is not meant to change. And it can catch certain ...

21. what does this statement do? HttpSession session=req.getSession(true)    forums.oracle.com

true means it will create a session if one does not currently exist (and if you do it this way in any "page" other than the "start" page, you have a problem). It will return null if use false and a session does not already exist. Edit: And the API doc spells this out rather clearly. If you do not already ...

22. HttpSession object retrieves incorrect objects from session.    forums.oracle.com

I use session.setAttribute(key,value) to set objects in session and session.getAttribute(key) to retrieve objects from session. I am working on a banking application and when two users are logged on, session.getAttribute method retrieves the object pertaining to the other user. I dont know it its problem with setting or getting but this is causing lot of problems in the application. WebLogic8.1 SP4 ...