Browse Source

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

git-svn-id: trunk@14528 -
joost 15 years ago
parent
commit
a8a332e029
1 changed files with 6 additions and 0 deletions
  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}