Computer product, session management method, and session management apparatus

Information

  • Patent Application
  • 20070214165
  • Publication Number
    20070214165
  • Date Filed
    June 27, 2006
    18 years ago
  • Date Published
    September 13, 2007
    17 years ago
Abstract
When a request not yet recognized as belonging to a session sent to a server application written in a non-object-oriented language is received, a session identification data is affixed to the request, and a server instance is created, associating it with a thread shared with the server application. The server application that includes a predetermined function is called. The session management data is retrieved and kept in a variable in the server instance. When the request containing the session identification data is received, the session management data is set in the thread.
Description

BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a schematic for explaining an overview and salient features of a session management apparatus according to a first embodiment of the present invention;



FIG. 2 is another schematic for explaining the overview and salient feature of the session management apparatus according to the first embodiment;



FIG. 3 is a detailed function block diagram of the session management apparatus according to the first embodiment;



FIG. 4 is a schematic for explaining a thread-local area;



FIG. 5 is a schematic for explaining an API disclosed in a server application;



FIG. 6 is a flowchart of a session management process in the first embodiment;



FIG. 7 is a flowchart of the session management process in the first embodiment; and



FIG. 8 is a block diagram of a computer that implements the methods, steps, processes by executing a session management program.


Claims
  • 1. A computer-readable recording medium that stores therein a computer program that causes a computer to implement a method of sharing session management data between a plurality of requests made in one session by a client application to a server application written in a non-object-oriented language, the computer program causing the computer to execute: server instance creation wherein when the request not yet recognized as belonging to a session is received, a session identification data is affixed to the request so that the request can be recognized as belonging to a session, and a server instance that is associated with a thread shared with the server application is created;first calling wherein when the server instance is created at the server instance creation step, the server application that includes a first predetermined function and a second predetermined function from the server instance, the first predetermined function being a function that sets the session management data in the shared thread and the second predetermined function being a function that retrieves the session management data from the shared thread;session management data keeping wherein when a process of the server application called at the first calling step ends, the session management data set in the thread by the server application is retrieved and kept in a variable in the server instance;session management data setting wherein when the request containing the session management data is received, the server instance corresponding to the session identification data is searched for, and the session management data kept in the variable in the server instance at the session management data keeping step is set in the thread; andsecond calling wherein when the session management data is set in the thread at the session management data setting step, the server application is called from the server instance.
  • 2. The computer-readable recording medium according to claim 1, wherein the server instance created at the server instance creation step is associated with a thread-local area that functions as the thread shared with the server application.
  • 3. A session management method of sharing session management data between a plurality of requests made in one session by a client application to a server application written in a non-object-oriented language, the method comprising: server instance creation wherein when the request not yet recognized as belonging to a session is received, a session identification data is affixed to the request so that the request can be recognized as belonging to a session, and a server instance that is associated with a thread shared with the server application is created;first calling wherein when the server instance is created at the server instance creation step, the server application that includes a first predetermined function and a second predetermined function from the server instance, the first predetermined function being a function that sets the session management data in the shared thread and the second predetermined function being a function that retrieves the session management data from the shared thread;session management data keeping wherein when a process of the server application called at the first calling step ends, the session management data set in the thread by the server application is retrieved and kept in a variable in the server instance;session management data setting wherein when the request containing the session management data is received, the server instance corresponding to the session identification data is searched for, and the session management data kept in the variable in the server instance at the session management data keeping step is set in the thread; andsecond calling wherein when the session management data is set in the thread at the session management data setting step, the server application is called from the server instance.
  • 4. A session management apparatus that sharing session management data between a plurality of requests made in one session by a client application to a server application written in a non-object-oriented language, the session management apparatus comprising: a server-instance creating unit that affixes a session identification data to the request not yet recognized. as belonging to a session so that the request can be recognized as belonging to a session, and creates a server instance, associating the server instance with a thread shared with the server application;a first calling unit that calls the server application that includes a first predetermined function and a second predetermined function from the server instance when the server instance is created by the server-instance creating unit, the first predetermined function being a function that sets the session management data in the shared thread and the second predetermined function being a function that retrieves the session management data from the shared thread;a session-management-data keeping unit that retrieves the session management data set in the thread by the server application and keeps the retrieved session management data in a variable in the server instance when a process of the server application called by the first calling unit ends;a session-management-data setting unit that searches for the server instance corresponding to the session identification data when the request containing the session management data is received, and sets in the thread the session management data kept in the variable in the server instance by the session-management-data keeping unit; anda second calling unit that calls the server application from the server instance when the session management data is set in the thread by the session-management-data setting unit.
Priority Claims (1)
Number Date Country Kind
2006-068228 Mar 2006 JP national