Ver Fonte

* Cleanup session for the case that a webmodule instance is used for more then one request (wkPooled)

git-svn-id: trunk@14528 -
joost há 15 anos atrás
pai
commit
a8a332e029
1 ficheiros alterados com 6 adições e 0 exclusões
  1. 6 0
      packages/fcl-web/src/fpweb.pp

+ 6 - 0
packages/fcl-web/src/fpweb.pp

@@ -465,6 +465,12 @@ begin
   UpdateSession(AResponse);
   FRequest := Nil;
   FResponse := Nil;
+  // Clean up session for the case the webmodule is used again
+  if assigned(Session) then
+    begin
+    Session.Free;
+    Session := nil;
+    end;
 {$ifdef cgidebug}
   SendMethodExit('WebModule('+Name+').handlerequest');
 {$endif cgidebug}