瀏覽代碼

* Let TSessionHTTPModule.CheckSession really create a new session when there is none

git-svn-id: trunk@14576 -
joost 15 年之前
父節點
當前提交
699c07ce7f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/fcl-web/src/websession.pp

+ 2 - 2
packages/fcl-web/src/websession.pp

@@ -342,8 +342,8 @@ procedure TSessionHTTPModule.CheckSession(ARequest : TRequest);
 
 begin
 {$ifdef cgidebug}SendMethodEnter('SessionHTTPModule('+Name+').CheckSession');{$endif}
-  If CreateSession and Assigned(FSession) then
-    FSession.InitSession(ARequest,FOnNewSession,FOnSessionExpired);
+  If CreateSession and Assigned(Session) then
+    Session.InitSession(ARequest,FOnNewSession,FOnSessionExpired);
 {$ifdef cgidebug}SendMethodExit('SessionHTTPModule('+Name+').CheckSession');{$endif}
 end;