manoj gahlot
Is session depend on cookie ???
0 Answer(s)      5 years and 4 months ago
Posted in : JSP-Servlet

Since I created one session & as we say that session store at server side that means if I clear browser cookie thereafter it should show me my login use as logged in but when i cleared the cookie then my user logged out that means there is something behind session with cookie so please tell me what is relation between cookie & seesion ?

Please also give example as when should I use session & when should I use cookie, url rewriting, hidden form field ?

Since I read the entire description but always gets confused while choosing any one like if we clear cookie then session also gets expire so why not use cookie ?

Please explain with real life example for better understanding...

Thanking you...


View Answers

Related Tutorials/Questions & Answers: