Page 1 of 1

Use Hesk Login System for own script

Posted: Mon Feb 24, 2014 8:53 am
by ferhub
Script URL:
Version of script: 2.5.2
Hosting company: own
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Hi, is it possible to use HESK login system on a script i wrote myself?
I have a small CMS backend written by myself which uses a simple authentication script. It would be great if i could use the login system from HESK. I tried to use the header in my code

Code: Select all

/* Get all the required files and functions */
require(HESK_PATH . 'hesk_settings.inc.php');
require(HESK_PATH . 'inc/common.inc.php');
require(HESK_PATH . 'inc/admin_functions.inc.php');
hesk_load_database_functions();

hesk_session_start();
hesk_dbConnect();
hesk_isLoggedIn();
but it just forwards me to my index.php. Did anyone try somethin similar?

Thanks in regards,

ferhub

Re: Use Hesk Login System for own script

Posted: Wed Mar 05, 2014 12:16 pm
by Klemen
HESK login wasn't designed to work with other scripts, so you might be better off using a dedicated PHP login script/class instead (Google should list several ones).