
Why are we getting session object from request object? Why are we adding cookie object into response object? Why are we getting cookie object from request object?
I know all methods are available its relevant class. is there any reason for getting session object from request , adding cookie object into response, getting object from request object.
one confusion is ...session is stored in server, client is stored in client. according to naming convention the session object should get from response object.i hope u are able to understand my question.
Please clarify clearly....

Please visit the following link:
http://www.roseindia.net/servlets/send-cookies-in-servlets.shtml
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.