Session Expired

Helpdesk for my helpdesk software

Moderator: mkoch227

wxwest

a solution to my admin login problem

Post 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.
monster
Posts: 1
Joined: Tue Jan 31, 2006 9:53 pm

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

Post 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).
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
dirko
Posts: 29
Joined: Wed Mar 29, 2006 7:41 pm

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

Post 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
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
dirko
Posts: 29
Joined: Wed Mar 29, 2006 7:41 pm

session expired

Post 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

:(
dirko
Posts: 29
Joined: Wed Mar 29, 2006 7:41 pm

Post 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
dirko
Posts: 29
Joined: Wed Mar 29, 2006 7:41 pm

Re: session expired

Post 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
dirko
Posts: 29
Joined: Wed Mar 29, 2006 7:41 pm

Post 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
dirko
Posts: 29
Joined: Wed Mar 29, 2006 7:41 pm

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

Post 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
d24
Posts: 1
Joined: Mon Aug 14, 2006 9:03 am

Session Expired

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

Post by Klemen »

Thanks for sharing!
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
dirko
Posts: 29
Joined: Wed Mar 29, 2006 7:41 pm

expired probs

Post by dirko »

finally solved.
thanks a lot for sharing.
dirko

:lol:
Klemen
Site Admin
Posts: 10165
Joined: Fri Feb 11, 2005 4:04 pm

Post 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,
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
jnmunsey
Posts: 2
Joined: Wed Dec 06, 2006 7:48 am

Post 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...
Post Reply