Page 3 of 4

a solution to my admin login problem

Posted: Sun Nov 27, 2005 2:12 am
by wxwest
I was having the same problem that others have had...
(Your session has expired, please login using the form below.
The error keeps repeating itself when i try to login again.)


During the initial install, I was able to log in as Administrator with the default password. After that I was unable to log in.

:arrow: I changed the following PHP.INI entry in my htdocs directory:
[MySQL]
; Allow or prevent persistent links.
mysql.allow_persistent = On (was off)


(close your browser and reopen again before you try to log in)

I am now able to log in as Administrator.

It seemed to solve my problem... may be worth a try.

Posted: Tue Jan 31, 2006 10:03 pm
by monster
max wrote:Hi:

I´ve been trying everything posted here without success.

Is a pitty because it´s a cool software, right what i was looking for but I must make it work on PHP5 because there are more applications in that server that need it.

This are my logs, hope it helps.

Code: Select all


[client 192.168.XX.XX] PHP Notice:  Undefined index:  a in /var/www/html/hesk/index.php on line 43
[client 192.168.XX.XX] PHP Notice:  Undefined index:  a in /var/www/html/hesk/admin.php on line 43
[client 192.168.XX.XX] PHP Notice:  Undefined variable: hesk_settings in /var/www/html/hesk/inc/header.inc.php on line 35
[client 192.168.XX.XX] PHP Notice:  Undefined variable: hesklang in /var/www/html/hesk/inc/header.inc.php on line 36
[client 192.168.XX.XX] PHP Notice:  Undefined index:  notice in /var/www/html/hesk/admin.php on line 104
[client 192.168.XX.XX] PHP Notice:  Undefined index:  goto in /var/www/html/hesk/admin.php on line 140
[client 192.168.XX.XX] PHP Notice:  Undefined index:  goto in /var/www/html/hesk/admin.php on line 78, referer: http://192.168.XX.XX/hesk/admin.php
[client 192.168.XX.XX] PHP Notice:  Undefined variable: hesk_settings in /var/www/html/hesk/inc/header.inc.php on line 35, referer: http://192.168.XX.XX/hesk/admin.php
[client 192.168.XX.XX] PHP Notice:  Undefined variable: hesklang in /var/www/html/hesk/inc/header.inc.php on line 36, referer: http://192.168.XX.XX/hesk/admin.php

I am also getting the exact same error above on a Fedora Core 4 with PHP5.

I install another copy into a Fedora Core 3 with PHP4.3.11 and everything works.

Looks like 0.93.1 is not ready for php5

Posted: Wed Feb 01, 2006 11:31 am
by Klemen
Actually I know people who are using it successfully with PHP5, must be some configuration problems? See for example
viewtopic.php?t=624&start=30
that worked for a PHP5 user on a Windows server (not sure about Fedora though).

Posted: Sat Apr 08, 2006 5:42 pm
by dirko
Anonymous wrote:I get the same problem. The process in which I can actually use it is this.

I have to delete the cookie that is put in by Hesk. Once I delete the cookie then I am to log into the admin section. The problem is that if I close the window and I want to revisit the admin page, I have to delete the cookie again.
didnt work for us..

we have tried all of the possibilities of this forum, but nothing worked out.

Does it make sense to w8 for a update? And when will it be there ??

desperate dirko
hungary
:(

Posted: Sat Apr 08, 2006 5:49 pm
by Klemen
What have you tried?

Can you upload the phpinfo file and link to it here:
http://www.phpjunkyard.com/extras/phpinfo.zip

Not sure when the update will be out, most likely not before May.

Regards

session expired

Posted: Sat Apr 08, 2006 6:07 pm
by dirko
hallo nice to meet you!

I have gone through all the items in this forum concerning this problem.
We are trying for weeks now. Nothing cured the illness..
We run freeBSD with 4.1.12 version PHP MySQL.
we have removed and reinstalled, step by step.
And first it works, could add admins and users, everything. But once we were doing other things and we had to use the TTS, it said like all the others: "your session expired".
However, i can view tickets when i copy paste the ticket number.
But cannot login, making the system worthless to us, not being able to add items or issues..
It seems the programm looks at something, then decides to judge session is over...
We are really desparate now, but cannot afford to buy TTS software.

Hope this update will solve the problem.
dirko

hungary

:(

Posted: Sat Apr 08, 2006 6:09 pm
by dirko
Klemen Stirn wrote:What have you tried?

Can you upload the phpinfo file and link to it here:
http://www.phpjunkyard.com/extras/phpinfo.zip

Not sure when the update will be out, most likely not before May.

Regards
Hallo again, please tell me, step by step, as my english is not too good, what i should do to upload and link ??

dirko

Re: session expired

Posted: Sat Apr 08, 2006 6:52 pm
by dirko
dirko wrote: We run freeBSD with 4.1.12 version PHP MySQL.
:(
maybe this version 4.1.12 is too old for hesk?

dirko

Posted: Sat Apr 08, 2006 7:04 pm
by dirko
dirko wrote:
Can you upload the phpinfo file and link to it here:
here i put the phpinfo file. http://www.satdsl.hu/hesk/phpinfo
i hope i did it ok, and it is good for you to diagnose??.
regards,

dirko
hungary

SESSION EXPIRED; how we solved it: Hope it helps u2

Posted: Sun Apr 09, 2006 11:54 am
by dirko
Site URL = http://www.satdsl.hu
URL to hesk = http://www.satdsl.hu/hesk
URL to hesk admin = http://www.satdsl.hu/hesk/admin.php
Version = 0.93.1 from sept, 2005
Version of PHP = 4.1.2
Host: own dedicated RH Apache at RedBus House, Amsterdam Airport, NL, 1000Mbits/s optical fibre, redundant.

Everything works fine when I create tickets, I receive the the emails and can track them as well. I can go to helpdesk, open the interface and by copy and pasting i can handle the tickets.

My server is RH Apache and this is where I am having the problem at.

This is my troubleshooting book:

PHPinfo file link:

http://www.satdsl.hu/hesk/phpinfo.php

I have also enabled debugging $hesk_settings['debug_mode'] to 1 (no errors shown)
+
added the following script to hesk_settings.inc.php just below "do not edit below here" (...!)
ini_set("session.use_trans_sid",true);
+
tried same with ini_set("session.use_trans_sid",false) "false" gave a good result..!!!
+
http://www.satdsl.hu/hesk/session_test.php (Session started successfully!)
http://www.satdsl.hu/hesk/session_test2.php ($_SESSION['test'] is set to: FALSE)
+
changed the script in admin.php on line 62 to:
$_SESSION+=hesk_dbFetchAssoc($result);
+
code changed in admin.php on line 71:
// session_regenerate_id();

We are testing now and will tell you the outcome hopefuly it lasts now...
Hope this will help others too.

Thank you all for your help and time,
dirko
hungary

www.satdsl.hu/hesk

Session Expired

Posted: Mon Aug 14, 2006 9:11 am
by d24
Hi,

I am using php > 4.3.1, Windows IIS 6.0.
Initial install has met the same problem with the rest. Clean install. Upon admin login, session expired immediately.

I've solve the problem by commenting off a code in admin.php that does an url redirection. It seems like the session data wasn't able to get redirected, and this is more of a PHP issue in a non-ISAPI installation environment.

The workaround:

In admin.php, under do_login() function,

Comment off the codes below,

if ($url=hesk_input($_REQUEST['goto'])) {
Header("Location: $url");
} else {
Header("Location: admin_main.php");
}

to,

/*
if ($url=hesk_input($_REQUEST['goto'])) {
Header("Location: $url");
} else {
Header("Location: admin_main.php");
}
*/

and include in this line right below the commented codes:

echo "<a href = 'admin_main.php'>Admin Main Page</a>";

this will disable the auto-redirection and works through the manual link = )

Hope this is useful for you guys!

Posted: Sat Aug 19, 2006 9:03 am
by Klemen
Thanks for sharing!

expired probs

Posted: Sat Aug 19, 2006 9:21 am
by dirko
finally solved.
thanks a lot for sharing.
dirko

:lol:

Posted: Sun Nov 12, 2006 7:52 pm
by Klemen
Hi all,

For those having problems with session expired, here's another solution from Angel Cabrera that did the trick for him. Worth a try.

Open file "common.inc.php" inside the "inc" folder, find line 261:

Code: Select all

function hesk_session_start() {
change it to (add another line):

Code: Select all

function hesk_session_start() {
session_name('help_desk_funcis');
Hope this helps.

Regards,

Posted: Wed Dec 06, 2006 7:51 am
by jnmunsey
I tried editing the admin.php and common.inc.php as shown above. editiing common.inc.php worked for one login but now it is back to the same thing.

Any ideas? Don't know why this can't work on any LAMP setup...