Use Hesk Login System for own script

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
ferhub
Posts: 1
Joined: Mon Feb 24, 2014 8:47 am

Use Hesk Login System for own script

Post 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
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Use Hesk Login System for own script

Post 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).
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply