فهرست منبع

* Fix bug ID #36075

git-svn-id: trunk@42993 -
michael 6 سال پیش
والد
کامیت
55c4c61cd5
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      packages/fcl-web/src/base/iniwebsession.pp

+ 2 - 2
packages/fcl-web/src/base/iniwebsession.pp

@@ -406,8 +406,6 @@ begin
   If (S='') then
     begin
     AddToSessionState(ssNew);
-    If Assigned(OnNewSession) then
-      OnNewSession(Self);
     GetSessionID;
     S:=IncludeTrailingPathDelimiter(SessionDir)+SF.SessionFilePrefix+SessionID;
 {$ifdef cgidebug}SendDebug('Expired or new session. Creating new Ini file : '+S);{$endif}
@@ -415,6 +413,8 @@ begin
     FIniFile.WriteDateTime(SSession,KeyStart,Now);
     FIniFile.WriteInteger(SSession,KeyTimeOut,Self.TimeOutMinutes);
     FSessionStarted:=True;
+    If Assigned(OnNewSession) then
+      OnNewSession(Self);
     end;
   FIniFile.WriteDateTime(SSession,KeyLast,Now);
   If not FCached then