ASP Pages

On each ASP page on your site you need to add the following line of code:

set SessionFarm = Server.CreateObject(“SessionFarm.SFSession”)

If you have Option Explicit set you must also declare the SessionFarm variable:

dim SessionFarm
set SessionFarm = Server.CreateObject(“SessionFarm.SFSession”)

You can also use the object from JScript ASP pages as well:

var SessionFarm = Server.CreateObject(“SessionFarm.SFSession”);

Notes:

  • If you have an include file that is loaded at the top of all of your pages you can put the SessionFarm code at the top of that include file.
  • Include files should not have the SessionFarm code if the page that is including it already has the SessionFarm code.
  • Response Buffering: if for some reason you must have response buffering off it is very important that the SessionFarm code be at the very top of your ASP page.
  • Object Name: the object name doesn’t have to be SessionFarm but it does have to be unique.