Questions tagged [httpsession]

An Java interface used by the servlet container to create a session between an HTTP client and an HTTP server.

An Java interface used by the servlet container to create a session between an HTTP client and an HTTP server. The session object has an expiration time which allows the container to invalidate the session after that specified time of the user inactivity. It is active while the user making requests, across more than one connection or page and remains active after the user exit application and stay active until it's expired. The server persists the session object for the user between restarts. While it's valid the session interface allows the application to bind objects to it and access then from different requests of the same user. A session usually corresponds to one user, who may visit a site many times. The server can maintain a session in many ways such as using cookies or rewriting URLs.

Details from the API docs:

Tutorials:

655 questions
0
votes
1 answer

How to hit second url withing the session of first url?

I am hitting one url for login public void hittingurl(){ String url = "http://test/login.jsp?username=hello&password=12345"; URL obj = new URL(url); HttpURLConnection con = (HttpURLConnection) obj.openConnection(); //…
Kunal Batra
  • 821
  • 3
  • 14
  • 35
0
votes
1 answer

Is it possible to clone a class in Java?

I have this monolith JAR in my current web server configuration. The whole system was drawn in a way that you can't have separate web apps, everything runs around this big jar. In the process of solving this, I'm trying to take out the sso…
0
votes
0 answers

WSO2 esb + AS feature = ESB can not manage HttpSession

this is my first question in Stackoverflow and i'm new in WSO2 ESB. I installed the 4.9.0 version of ESB and also installed Application Server feature on it. WSO2 ESB can not manage HttpSession. Can u help me please to solve this problem? I already…
Shamil
  • 1
  • 1
0
votes
1 answer

window.location.reload(true) will clear HttpSession?

I have javascript that calls a function to set the session value like below is the client code:
Sangeetha cg
  • 81
  • 5
  • 14
0
votes
1 answer

How to store multiple objects in a session one by one per request?

I am working for application where i have to send one object per request.And i have to store the whole data in a session variable.How can i do that? I am sending the data into controller and creating the object and then trying to store in a…
born2code
  • 9
  • 5
0
votes
0 answers

Creating remote interface of a Stateless EJB 2.1 bean and storing it in HTTP session for each user?

I am working on an enterprise application (EJB 2.1). In this app, whenever a user login, it is creating remote interface of a Stateless Session Bean and storing it in Session as an attribute. This is the pseudo code: HttpSession httpSession = null;…
srh
  • 1,661
  • 4
  • 30
  • 57
0
votes
0 answers

springmvc http session check and return html

There is a bunch of static .html files in my project. I want to do intercept all *.html requests and check their HttpSession to see if token is correct. The problem is if I intercept all *.html path in one servlet, after auth checking, I can't…
Kim
  • 5,045
  • 6
  • 38
  • 60
0
votes
0 answers

Same session in different browser tabs in jsp-servlet

if some user login in my website then he/she will open other tab from current browser then it continue with his/her home page without enter login cardinals again. Can be possible to do with using of jsp/servlet/httpsession? i have two ideas but i…
vimal suthar
  • 61
  • 1
  • 6
0
votes
0 answers

Wildfly 8.2 : session attributes disapear, when using mod cluster

we're using wildfly 8.2 in cluster mode , with ha profil, so as to benefit from failover fonctionnality. But seems that things don't work properly since we enable in our web.xml, because session attributes disapear from user's…
0
votes
2 answers

Class requirements for placing object into HttpSession

I am editing a class that is mean to be placed into the session of a servlet use as a key for a hastable of other objects. I do not know what the minimal requirements for an object which can be placed into the HttpSession. what are the minimal…
jillian
  • 52
  • 6
0
votes
1 answer

GET IP address from HttpSessionEvent

I'm using JavaEE and have an HttpSessionListener implementation that I am trying to use to get an IP address when a client creates a session. How do I do this? My webapp is 2.4 (cannot change this, I'm afraid):
mikeb
  • 10,578
  • 7
  • 62
  • 120
0
votes
1 answer

Make a web service call in php

So i have this working in ruby and i want to be able to do this in php. I am using the wamp server if that matters. Here's the ruby method: def response(url, body) uri = URI(url) request = Net::HTTP::Post.new(uri.request_uri) request.body =…
moloch101
  • 30
  • 4
0
votes
1 answer

How to list HttpSession objects and size in a ServletFilter without creating performance issues?

I´m trying to solve a performance and stability issue in a JEE application caused by some HttpSessions storing large objects. The app is deployed on Oracle Weblogic Server 12.1.1. but unfortunately I don´t have access to the app code so I´m…
0
votes
1 answer

HttpSession changes inbetween calls to Servlet and GWT RPC Servlet (RemoteServiceServlet)

I have a GWT application which I would like to run from within a Joomla layout. The concept seems to work fine and the application loads up correctly. Joomla uses an iFrame to achieve this and just sends off the url which will kick start the GWT…
Xandel
  • 530
  • 2
  • 5
  • 22
0
votes
0 answers

How can I implement login and logout in Android using Servlet and HttpSession?

I understand how to created the HttpSession and invalidate it in Servlet to perform login/logout. But my problem is Android, I don't know how to get the Session or Perform the logout. Is cookies same as the Session. Can anyone direct me to the right…
john doe
  • 157
  • 1
  • 10