Hi All, I have got a task to perform in my jsp page.My jsp page gets called on click of a link in my application.
What about shared IP connections on separate computers?Can I log into your application with my desktop computer and my i Pad? my requirement is that i am administrator and multiple users login through remote locations, i want to monitor the users so i want to keep access to show me list of active users and which i have done and also access to invalidate that particular this.session Id is conformed coming from jsp.If the session object null means, session is already expired or not yet initiated. After clicking the link that invokes my jsp page, it redirects me to the given url... page1------------ Attribute("something","somevalue"); now in your executing jsp page apply a check on the attribute As per my knowledge in a jsp page session object can never be null, because if you look at the _jsp Service method of servlet(jsp compiled servlet) the following line of code gets executed session = page Session(); means your session object is not null.Use invalidate() method on session object to invalidate a session if the session object is not null. As per my knowledge in a jsp page session object can never be null, because if you look at the _jsp Service method of servlet(jsp compiled servlet) the following line of code gets executed session = page Session(); means your session object is not null.But you are asking in a technical help forum and not asking for technical help, and not answering the questions that are being raised in an attempt to have you detail the real requirements.
I expect that you will not find the solutions that you are looking for here.
What happens to the session object itself is up to the designer of the servlet engine - it might be discarded or recycled.
Bill [ August 04, 2006: Message edited by: William Brogden ] It makes the session invalid, but: * this does not mean the session will be cleaned immediately - it may get cleaned later by a lower priority thread * it doesn't mean the user gets logged out - authentication details may be storred separately * it doesn't mean they won't just be handed another session - the next request may give them a new one, and it may even have the same session ID Dave Is it also possible that the session object gets reused and even though after invalidating the session and it's attached attributes being gone I can be getting the same creation time and the same session ID?
3) How about people who run both Firefox and Chrome, which are separate applications, on the same computer?
4) What about shared IP connections on separate computers?
I have session ID and user name of particular user so when i try to use like this Http Session Context context=Session()Session Context(); Session(session ID).invalidate(); this is giving null pointer.