Home > Knowledgebase > Configuring: Running PHP sessions

Question/Problem
Configuring: Running PHP sessions

Answer/Solution
To run PHP sessions, include the following code at the top of any PHP script that uses sessions:

session_save_path("your home directory path"/cgi-bin/tmp);
session_start();

  • To find "your home directory path":
  1. Log into the PHP Scripting page for actual path to your home directory.
  2. Replace "your home directory path" with the path shown.
  • Set session_save_path to a directory within your cgi-bin: either /cgi-bin/tmp as in the example above or another directory as long as the absolute path is correct.
For details on how PHP sessions work, review PHP's Session Handling Functions.
Updated 07/26/16


How helpful did you find this article?

Click stars to rate the article:
star star star star star
Comments (optional):

Please login to view your tickets.