Never mind... as usual, it was a stupid developer trick... Turns out I forgot two JSP's that get loaded, and they didn't have session=false in them, so that explains it. My bad.

Well, I still do have another problem (I think... could be me again!)... When you execute an Action, assume it's the first one being executed in my app, so it's the logon Action, will Struts automatically create a session for me BEFORE my Action is called? It looks like that's what's happening, and if so, is there a way to tell it NOT to do that?

That question being asked, I have to go check through my code and make sure I'm not creating it myself somewhere. I'm 99% sure I'm not because I changed some code this morning to ensure I wasn't, but I can't be sure at this point :)

Frank


From: "Frank Zammetti" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Vexing session creation issue
Date: Wed, 16 Jun 2004 10:34:54 -0400

Argh, this one is hurting my head...

I have an application that starts out by returning index.jsp (it's the welcome file). This JSP opens a new window via JavaScript and loads into it index1.jsp. index1.jsp populates five frames of a frameset. At the end of all this, my logon screen is seen.

The important thing to note here is that no Actions are executed to this point, it's just loading JSP's, and there is not really any JSP code in any of these except for a bunch of request.getContextPath() calls. No code accesses session or anything like that, and there are only two references to getting anything out of request (because the logon page might be shown after a bad attempt, and I need to get the userID and password that was attempted). In all of them, I have session="false" in the page tag.

Now... I've created a SessionListener to tell me when a session is created or destroyed. Problem is, during all these JSP loads, the create event fires TWICE! What's worse, session is NOT null (which I expected it to be), and worse still, I'm getting two DIFFERENT session ID's! It looks like two sessions are being created when it seems like absolutely NONE should be.

I'm banging my head against the wall with this one. Anyone have any ideas? Thanks folks!

Frank

_________________________________________________________________
MSN 9 Dial-up Internet Access fights spam and pop-ups – now 3 months FREE! http://join.msn.click-url.com/go/onm00200361ave/direct/01/



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________ Check out the coupons and bargains on MSN Offers! http://youroffers.msn.com


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to