Hi all,

I have a question regarding the "session tracking" topic. Below is what I did:

1) I write 2 servlet: ServletOne and ServletTwo. In ServletOne I set an 
attribute like this:
session.setAttribute("myAttribute", "myAttribute's value"); In ServletTwo I try 
to get this attribute by request.getAttribute("myAttribute");

2) I disable cookies in both FireFox and IE, and I do not apply any session 
tracking method (URL rewriting, hidden form ...)

3) I execute ServletOne in FireFox

4) I execute ServletTwo in IE (to make sure that no cookie is used)

5) As far as I know, if I do not apply any session tracking method, in 
ServletTwo I can NOT get the attribute that I set for this session. But in 
ServletTwo I get exactly the value that I set in ServletOne (that means: 
"myAttribute's value"). In fact, in ServletOne and ServletTwo, I print out the 
sessionid value with request.getSession().getId() , and I get two different 
sessionID.

Can anyone tell me why I can get the attribute I set in ServletOne from 
ServletTwo although no session tracking method is used?

Thank you very much.


      "Yahoo! Mail nay nhanh và nhiều không gian thoáng hơn. Hãy trải 
nghiệm ngay hôm nay! 
http://vn.mail.yahoo.com"
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to