File Share Setup

These instructions are for using SessionFarm with a File Share for data storage. If you are planning on using a SQL server for data storage you can skip this step.

  1. Create a file share on a server that is accessible by all web servers in your web-farm. It is recommended that this share is not created on one of the web servers, it would work, but defeat the purpose of the web-farm if that machine went down.
  2. Make sure the NT user account your ASP application is running as has access to this directory. Usually this is IUSR_MachineName.
  3. Copy the SessionFarmFilePurge.exe file from your install directory to the server that is hosting your file-share. Use NT Scheduler to run SessionFarmFilePurge.exe every 12 or 24 hours. Ideally this should be scheduled to run during a period of low activity (like 3 or 4 AM). This job will clear out old session data from the session file-share. You will need to pass the executable the directory name of the file-share in the command-line as follows:
    SessionFarmFilePurge.exe \\server\share\directory\