List Info

Thread: Losing a session




Losing a session
user name
2006-02-24 17:20:00
I am currently running tomcat 5.5.7.

One thing that I ran into was a little strange (it may be of
help to
you).  About a year ago I wanted to create a framework on
top of Turbine
to maintain a virtual (single authentication) session across
apps
deployed to the same or different servers, different WEB-INF
directories, etc.  I also wanted it to work with or without
cookies, and
only use tomcat to authenticate and maintain all sessions.

I got everything working, but in the course of things I
found that when
I used cookies I had to include the session id as
JSESSIONID.  When I
wanted it to work without cookies I had to embed the session
id in the
url as jsessionid.  I found that it was case sensitive.

If I did not make each case sensitive, I would lose the
session.

I have been working with Tomcat since version 4.0, but I did
not tackle
any problems quite this sophisticated until I started using
tomcat 5.5.7
so I am not sure if this is behavior associated with this
version, or if
it has been around longer.

-----Original Message-----
From: Rafal Markut [mailto:rafal.markutmediawave.de] 
Sent: Friday, February 24, 2006 10:53 AM
To: 'Turbine Users List'
Subject: AW: Losing a session

Hello,

> Since you are moving from one server to another this
coule be caused
by
> the 
> structure of your deployment.
>
> Is the directory structure of your deployment identical
on both
servers?

Yes, the structure is identical (this same
directory-structure, this
same
web.xml). I just copied whole application directory.

> Another thought... do you have any code (in the trouble
area) that is
> ending the session (due to a timeout, invalid
authentication, etc)

No

With best regards,
Rafal

----- Original Message ----- 
From: "Rafal Markut" <rafal.markutmediawave.de>
To: <turbine-userjakarta.apache.org>
Sent: Thursday, February 23, 2006 11:36 AM
Subject: Losing a session


> Hello,
>
> I use Turbine 2.1 with Torque, Tomcat 5.x and
postgresql.
>
> When I navigate on my application then suddenly
HttpSession has
diffrend
> ID and my session information (like e.g. TurbineUser)
has been lost.
> It happens always in this same part of my apps (when I
navigate on
other
> part, everything is OK).
> What's more ... this application was working correctly
but we made
> migration on different server. This happens only on the
new server.
> Old server and new one - have different tomcat versions
but both are
> 5.x.
>
> I checked and debugged my code very carefully and I
don't see any
error
> - in Action class comes suddenly RunData object with
different
sessionID
> (data.getSession.getId()). When I see cookies
(JSESSIONID)... it has
> also different ID.
>
> Does somebody have any idea?
>
>
> With best regards,
> Rafal
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: turbine-user-unsubscribejakarta.apache.org
> For additional commands, e-mail: turbine-user-helpjakarta.apache.org 



------------------------------------------------------------
---------
To unsubscribe, e-mail: turbine-user-unsubscribejakarta.apache.org
For additional commands, e-mail: turbine-user-helpjakarta.apache.org



------------------------------------------------------------
---------
To unsubscribe, e-mail: turbine-user-unsubscribejakarta.apache.org
For additional commands, e-mail: turbine-user-helpjakarta.apache.org


------------------------------------------------------------
---------
To unsubscribe, e-mail: turbine-user-unsubscribejakarta.apache.org
For additional commands, e-mail: turbine-user-helpjakarta.apache.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )