git-svn-id: trunk@14528 -
@@ -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}