You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jeff Corliss <je...@yahoo.com> on 2002/08/24 02:22:24 UTC

Problem converting from 1.02 to 1.1: session IDs "changing" unexpectedly

I'm working on converting an app from Struts 1.02
version to 1.1b1 and I'm having a problem where
session IDs seem to be changing in between logging in
to the app and doing some action within the app.  This
is an app that was fully working ok under 1.02.

Before I go any further I should also mention that I'm
also using Tomcat 4.18 beta (previously used mainly
3.24), in case that may be the source of the problem.

Here's the basic scenario.  I have a LoginAction to
process the user's login inputs and, if successful,
place a "User" object in the session attributes.  It
has some logging in it to show success/failure.  In
all of my other Actions I also have logging to show if
the user is not logged in (did not find the User
object in the session attributes).  After logging in
ok, as soon as I try to do some action within the app,
I am tossed back to my /login forward because,
apparently, the session ID is suddenly different.  A
sample log output would be like this:

2002-08-23 19:51:04 action: LoginAction: User 'Jeff
Corliss' logged on in session
198D3DA32B90090A83B8123F18CCBAB5
2002-08-23 19:51:07 jsp: init
2002-08-23 19:51:13 action: EditAccountAction: User is
not logged in under session
80A89CF8B001EA891ED9206F1EBAD49B

If I go ahead and login again, and then do a logout
action, I get these two additional outputs:

2002-08-23 19:51:29 action: LoginAction: User 'Jeff
Corliss' logged on in session
80A89CF8B001EA891ED9206F1EBAD49B
2002-08-23 19:53:22 action: LogoutActon: User logged
out in session 4D591F229680D79857A0198B4760C5CA

I'm sure I must have something setup wrong somewhere -
anyone have any clues?

Thanks,
JC


__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Problem converting from 1.02 to 1.1: session IDs "changing" unexpectedly

Posted by Rob Leland <rl...@apache.org>.
Jeff Corliss wrote:

> also using Tomcat 4.18 beta (previously used mainly

I would try going to RTomcat 4.04, I know it isn't as flashy.
Our system also handles login the same way and we have used
struts 1.1b1 - 1.1b2, with no problem.

-Rob


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>