You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by johne <je...@yahoo.com> on 2008/10/26 21:03:42 UTC

Sessionid question

We are having a bit of a hard time with an SEO issue and have been struggling
for some time to resolve it.  Was not sure where to post, but was thinking
here might be where I could get some help.

We use Struts 1.2.8, Tomcat 6.0.18, Tiles, Velocity.  All of our filters
turned off and do not use of JSPs.

The problem we are trying to resolve is that of session ids.  Search engines
are not handling session ids on our site well.   We seem to be creating a
session id without doing a getSession(true) or a getSession() right off of
our front page.

In creating a HttpSessionAttributeListener, we find this happening:

INFO  [081026 14:47:02] sessionCreated('6B50F65CAC0DB2B1E1CF67F8D7C256B3')
INFO  [081026 14:47:02] attributeAdded('6B50F65CAC0DB2B1E1CF67F8D7C256B3',
'org.apache.struts.action.LOCALE', 'en_US')
INFO  [081026 14:47:02] Session does exist. Start of Setup

As you might note, the session seems to be being created prior to our action
even being called, as shown in the last line.

Is there any idea on where this might be coming from within the technology
mentioned or what we might be able to do to remove it?

Later, once a user logs in, we would want session to be created, but not
where search engines would generally need to go.

Thank you for any ideas on how to approach this.

Regards,

John




-----
JohnE

http://jobbank.com/ jobbank.com 
-- 
View this message in context: http://www.nabble.com/Sessionid-question-tp20177394p20177394.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Sessionid question

Posted by johne <je...@yahoo.com>.
Well, my blame is not there for nobody responding.  Upon looking closer
throughout the forums, this has been a question hitting for quite some time.

Arguments vary on why, but it seems that one ought to have to use sessions
if using Tomcat / Struts it seems.  Based on the importance  of SEO in
businesses keeping up on top, it seems a bit hard that there is no easy way
to turn off auto-session creation.

I have tried adding session="false" in my JSP, not used any form of
request.getSession(true), not used sessions in my struts-config.xml, and yet
I am still having sessions being created for me prior to a client logging in
or using a session.

At the moment it seems that something in Struts 1.2.8 is setting the locale
into the Session without me yet requesting it.  After quite some time it
seems one can do a locale=false in struts-config.xml.

After adding this, I think I have it licked and...

No, I forgot my rocket science degree.

Now Somewhere after where that locale was being created and prior to my
first "welcome" action being created, a session is still being created. 
This time there is no easy hint like last time (locale object) and I have no
clue what could be causing it.

No filters, no locale, no sessions in struts-config.xml, no getSession(),
no....    rocket science degree.

Any ideas?

Again we use Struts 1.2.8, Tomcat 6.0.18, Tiles 1.*, Velocity 1.5, etc.

Thank you for any ideas on how I can even track this down.  The
HttpSessionListener is not giving more detail then that one is being
created.

Guess maybe a debugger is next.


-----
JohnE

http://jobbank.com/ jobbank.com 
-- 
View this message in context: http://www.nabble.com/Sessionid-question-tp20177394p20199996.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org