• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can jsp or servlet access cookie created by .NET?  RSS feed

 
Calvin Kong
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can jsp or servlet access cookie created by .NET? Say the main page of an web application is written in .NET, and a cookie is created at the main page. By clicking a link in the main page will launch a java jsp page (or servlet). Can jsp or servlet in the launch application access the cookie that is created by .NET?

Thanks

Cal
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cookies are an html feature, and so can be read by any process that reads an html request, whether it be .Net, J2EE, Javascript, CGI, PHP, or whatever. The rule with cookies is that they can only be retrieved by the same server domain that sent them.

The answer to your question, then, is yes. As long as both the .Net application and the J2EE application have the same server domain.
 
Calvin Kong
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Merrill.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!