Browse Source

* Added TIniwebSession.SessionCookiePath

git-svn-id: trunk@8521 -
joost 18 years ago
parent
commit
05092f01f5
1 changed files with 5 additions and 1 deletions
  1. 5 1
      packages/fcl-web/src/websession.pp

+ 5 - 1
packages/fcl-web/src/websession.pp

@@ -53,6 +53,7 @@ Type
     FCached: Boolean;
     FIniFile : TMemInifile;
     FSessionCookie: String;
+    FSessionCookiePath: String;
     FSessionDir: String;
     FTerminated :Boolean;
     SID : String;
@@ -64,6 +65,7 @@ Type
     Property Cached : Boolean Read FCached Write FCached;
     property SessionCookie : String Read FSessionCookie Write FSessionCookie;
     Property SessionDir : String Read FSessionDir Write FSessionDir;
+    Property SessionCookiePath : String Read FSessionCookiePath write FSessionCookiePath;
   Public
     Destructor Destroy; override;
     Procedure Terminate; override;
@@ -77,6 +79,7 @@ Type
   Public
     Property Cached;
     property SessionCookie;
+    Property SessionCookiePath;
     Property SessionDir;
   end;
 
@@ -263,7 +266,8 @@ begin
     C:=AResponse.Cookies.Add;
     C.Name:=SessionCookie;
     C.Value:=SID;
-     end
+    C.Path:=FSessionCookiePath;
+    end
   else If FTerminated then
     begin
 {$ifdef cgidebug}SendDebug('Session terminated');{$endif}