Summary Problem/Solution
I am posting the solution here cause I haven't 
come across posts about this. Most people complain 
if they are not getting their sessionids when they 
expect them added to the url. My problem was that 
jsessionids were added to 
all my url's even when cookies were turned on. 

Now I believe that it has to do with the way I've been 
navigating the pages.

Reason: I was using the back button on the browser. 
The browser was caching the same page.When I give the 
location a "index.jsp" instead of a new page the page
refreshes and the url looses the jsessionid as it should 
unless I turn off cookies.

Backgound:
Under the covers, Httpsession tracking uses 
cookies or falls back on URL rewriting(if neccessary) to 
handle sessions. This is nothing users need to worry
about, unless users browser will not have cookies enabled. In that case, you
have to make sure the development code uses URL rewriting to encode any URLs
generated. The java code in struts menu takes care of that(I assume). Some 
claim
that showing the sessionid is harmful. I thought I had to resort to URL
rewriting to solve the problem I was having. This cant be easily done with
Velocity if at all..But Matt your comment made me rethink the problem in a
simpler fashion..so thanks..






-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
struts-menu-user mailing list
struts-menu-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/struts-menu-user

Reply via email to