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 get current User Information of IBM Connection5

I have developed an application in Java/eclipse and i need to integrate this app as a widget to IBM Connection5. I lack one thing, i need to get the current IBM Connection 5 User Id. Is there Any way, my app can talk to IBM Connection5? and get the…
Bilal
  • 1
0
votes
2 answers

How do I distingush between http sessions in Spring MVC?

I have a pretty simple webapp that follows the tutorials set out by Mkyong and others. I want my webapp's scope be distingushed by the browser session. That is a different user, or different browser tab should not share objects with the other…
dwjohnston
  • 11,163
  • 32
  • 99
  • 194
0
votes
0 answers

session in spring mvc spring security

How to manipulate session in spring mvc . I have searched in the network and I found that Spring MVCcould be the solution. But the problem is I can only pass two parameters of authentification (the username and the password)
Sami Kobbi
  • 309
  • 1
  • 7
  • 17
0
votes
2 answers

What is the easiest way to get an LDAPContext from a FacesContext?

I've got a Java doLogin() method invoked from a JSF page that gets an id (String netId) and password (String password) from the user. doLogin() initiates the authentication using netId as the principal in an Active Directory login. After that, I…
PMorganCA
  • 730
  • 6
  • 24
0
votes
1 answer

Spring/Grails: Is there a limitation on the amount of data that can be stored on the session variable?

How much data can be stored on session? Is there a performance disadvantage of storing too much data?
Alexander Suraphel
  • 10,103
  • 10
  • 55
  • 90
0
votes
1 answer

How Handle session using requestProcessor

I am working on struts,i want to know how to handle session using org.apache.struts.action.RequestProcessor ? Where in have to check the existence of session throughout the app ?
sarah
  • 2,387
  • 13
  • 43
  • 50
0
votes
1 answer

How to retireve the last requested page after session time out in SSO siteminder

Application is developed using Spring MVC, JSP Servlets version 2.4 and uses Siteminder's SSO for authentication. Problem: After session time out, the file download functionality is not working. Expected behaviour: If user hit download button after…
kkk
  • 166
  • 2
  • 18
0
votes
1 answer

vaadin access session attribute that was put in filter

I've got multiple filters. In one of the filters I've got this code HttpServletRequest request = (HttpServletRequest) req; String url = request.getRequestURI(); HttpSession session = request.getSession(); if (request.getParameter("xxxx") != null) …
lapots
  • 12,553
  • 32
  • 121
  • 242
0
votes
1 answer

Servlet + mod-rewrite: HttpSession.getAttribute() returns null

I have a Servlet + JSP app running on Tomcat. I use mod-ajp to redirect apache on Tomcat using these rewrite rules: RewriteRule ^/myapp/(.+) ajp://localhost:8009/myapp/$1 [P] RewriteRule /myapp/(.+) ajp://localhost:8009/myapp/$1 [P] which works…
evg02gsa3
  • 571
  • 5
  • 17
0
votes
0 answers

Java HttpSession not working in web server

I have a problem with HttpSessions when I use them in web server. Project based on Spring MVC and works fine locally, but when I endure it on real web server session not working. I use them for user logging. Code of user…
MrKiwi
  • 1
  • 1
0
votes
1 answer

I can not make a request and the Response to a servlet

I have a servlet. in it I form a line and when I type in the browser link, he told me that rotates the line. everything is fine. Now I want to create an array of strings, and depending on the parameter in the link rotates the particular row. how to…
0
votes
1 answer

How to turn off http session in Spring 3.1.2.RELEASE

we use Spring security 3.1.2.RELEASE and we need to switch off HttpSession. Is there any way how to do it? We tryed to use create-session="stateless" attribute of http element, but without any success. Is there any way how to switch of session or at…
Petr Kostroun
  • 456
  • 9
  • 27
0
votes
0 answers

Heavy use of HttpSession for data transfer within web pages

i am developping a Medical Billing System using servlets and JSPs but not following MVC,therein for fetching data from servlets to view page i am putting so much attributes(lists and single valued both) inside HttpSession.will this affect my web…
Alok Mishra
  • 926
  • 13
  • 39
0
votes
1 answer

HttpSession with default attributes

Hello i'm developing a Spring web application. I was wondering if it's possible to start/create/instantiate HttpSession with default attributes for example: isLoggedIn : false Once user logs in i will change the value to true Is it possible or…
DonkeyKong
  • 808
  • 1
  • 10
  • 24
0
votes
2 answers

Continuing sessions using JSESSIONID

I have a web application which requires username and password authentication to enter. What I am doing is, authenticate a user from a stand alone Java app, which would do so by making Http request to the server using username and password. Then I…
Darshan Lila
  • 5,772
  • 2
  • 24
  • 34