A leader in web hosting since 1998
Live ChatHelp
  • GBP
  • CAD
  • AUD
  • EUR
Home > Knowledgebase > Configuring: Running PHP sessions

Configuring: Running PHP sessions

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);

  • 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 06/27/17

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.