×

Loading...

Topic

This topic has been archived. It cannot be replied.
  • 工作学习 / IT技术讨论 / Interview question: What is a session?
    Can anybody answer my question? please do not copy textbook stuff---I have tons of IT books. The answer I wan is one using everyday English. I have ever interviewed a Chinese guy who has 1 year of ASP experience but cannot tell me what a session is.
    • I use session to store user-level variables,especially when one navigates through different pages.
      actually i can not give the exact definition either.
    • My understanding.
      In the field of Internet, if the visitor visit a website, more or less the server record some data for this visit, this data is called session data, and the session of visit lasts until the user close his web browser. In some case the session ends when the visitor leaves the pages of that website and switches to another site, depends on how the mechanism is designed in the server-side.

      Some server-side scripting language support session, while some don't. If the language doesn't support session, as a programmer, you have to develop a mechanism to record the visitor's information so that he/she feels smooth while visiting your website.

      Am I right, Jabber? :-)
      • A session is a session, right? :-)
        本文发表在 rolia.net 枫下论坛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
        the session.

        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