How to edit session Paths..

All support enquiries for DFH go in here...

How to edit session Paths..

Postby joshp » Tue Dec 18, 2012 6:20 am

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

Re: How to edit session Paths..

Postby SamEA » Wed Dec 19, 2012 3:43 am

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.
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm


Return to Daddy's File Host v1.X

Who is online

Users browsing this forum: No registered users and 7 guests

cron