httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Donaldson <>
Subject Re: How do I get hold of session information?
Date Tue, 19 Oct 2010 15:05:36 GMT
In a Java servlet I may do something like this to get hold of the session on the 
web server:

public void doPost(HttpServletRequest req, HttpServletResponse res) throws
HttpSession session = request.getSession(true);
Cart cart = (Cart)session.getAttribute("cart");

and I can get hold of the session id etc.

I assume that if I were to make a request to a web site hosted on Apache then 
the capability exists for one of the server side web pages to create a session 
and store some piece of data in it. What I want to do in my module is get hold 
of that session (if it exists) and read data from it.

From: Eric Covener <>
Sent: Tue, 19 October, 2010 14:56:32
Subject: Re: How do I get hold of session information?

On Tue, Oct 19, 2010 at 9:36 AM, Paul Donaldson
<> wrote:
> Hello,
> I have a module that does little more than take the information in the http
> request and forward it to another web site. I can get information from the 
> string easily enough, but is there any way I can get information about the
> session, and data stored in it?

What session?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message