用DELPHI6中的TASPOBJECT,和TASPMTSOBJECT这两个组件试试
procedure taspobjecthello.hello;
begin
 response.write('<p> now is <b>'+datetimetostr(now)+'</b></p>');
end;

解决方案 »

  1.   

    好象是可以直接用session变量的
      

  2.   

    用TASPObject.Session可以直接访问session,以下是说明:
    Provides access to the interface for the ASP Session.property Session: ISessionObject;DescriptionUse Session to access the ASP intrinsic Session object. This interface lets you store information needed for a particular user-session. Variables stored in the Session object are not discarded when the user jumps between pages in the application; instead, these variables persist for the entire user-session. The Web server automatically creates a Session object when a user who does not already have a session requests a Web page from the application. The server destroys the Session object when the session expires or is abandoned. For more information, see Microsoft抯 documentation of the Session Object.要访问的话可以这样:
     s:=  self.Session.Value['abc'];
    这是TASPObject组件里面的方法。