Cookie questions in Java

Posted by user220201 on Stack Overflow See other posts from Stack Overflow or by user220201
Published on 2010-06-06T13:45:20Z Indexed on 2010/06/06 13:52 UTC
Read the original article Hit count: 283

Filed under:
|
|

Hi,

How do I differentiate between multiple cookies set through my site? I am setting two kinds of cookies one to see if the user has visited the site or not and an other one for authentication. How do I differentiate between these two? I get both of them when someone accesses a page after authentication. Do I add extra information to the Cookie Value or is there some other way? I understand the setName() function will change the name (from jsessionid) for every cookie from then on. Am I correct?

  • Pav

© Stack Overflow or respective owner

Related posts about java

Related posts about servlets