Page 1 of 1

How to edit session Paths..

PostPosted: Tue Dec 18, 2012 6:20 am
by joshp
Hi.
To allow logins, my host requires to add specific session paths.
Where to add this?
They say i've too before session start()

Re: How to edit session Paths..

PostPosted: Wed Dec 19, 2012 3:43 am
by SamEA
DFH saves its sessions to PHP's default defined location.

If you must define a specific location to store DFH's sessions, you must call
Code: Select all
session_save_path('/home/example/sessions');
before
Code: Select all
session_start();


I cannot recall if more than one session_start(); is called within the script, and so I advise you to check all root files (ignoring sub-directories) and add before it session_save_path('/home/example/sessions');

However, session_start(); is called primarily in ./config.php.