本文发表在 rolia.net/zh 相约加拿大网上社区枫下论坛
There are textbook defintions on session. However, it is hard to recite the definition in an interview. My answer is try to argue away the interviewer and make him/her forget about the original question.
Session is not only a technical concept. It is
also a business concept. In the Internet world, as a surfer open the browser and
hits a URL, he/she begins a session with
the website. This session is composed of a series of request & response between the browser and the web server, until the surfer leave the site or he/she has idled for a too long time so that the web server expires
Techincally, session is incorporated in
a session object if your site is built using ASP. If your site is created using Java servlets and JSP, it is described by a HttpSession object. For a web developer,
he/she must keep session management
in mind. In another word, session management is the core of the Web programming.
My answer is not
really accurate, but I always use it to
confuse the people who interview me.
Talking some trivial things but make them sounds like truth is kind of a skill in a job interview. It does not always work but sometime it does work!
更多精彩文章及讨论，请光临枫下论坛. 网址: rolia.net/zh