Session Cookie in Servlet

Hi all I have a issue please answer me.If users disabled cookies.( other than session cookies)how i should dynamically switch session cookies. and how i can generate session cookies in servlet?thanksyashvant
[256 byte] By [yashhnba] at [2007-10-3 1:49:07]
# 1

If the user has cookies disabled (session, since persistent ones are rarely used for maintaining session state with a browser), then most containers will attempt 'url-rewriting' and insert the session uid there (in the URL). That should work even if cookies are disabled. In order to access a session, you simply call HttpServletRequest#getSession(). If no session exists, one will be created, else the existing one will be retrieved. The J2EE container will send either a cookie in the response or re-write the URL. You don't have to do anything special.

- Saish

Saisha at 2007-7-14 18:47:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Why can't U use session.setAttribute(String name,Object Value),session.getAttribute(String name)....I don't think there is any other way U can implement that at t he client side......
RahulSharnaa at 2007-7-14 18:47:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...