Session Expired

Helpdesk for my helpdesk software

Moderator: mkoch227

Guest

Post by Guest »

Did I read somewhere or hear somewhere that one of the differences between PHP4 and PHP5 was the use of POST vs GET?? (I assume POST is used for the admin login?). Could this have any bearing on this issue? Or is this barking up the wrong tree?!
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

POST and GET are HTTP methods and have nothing to do with PHP being version 4 or 5. All versions of PHP support both methods.
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
Guest

Post by Guest »

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.
Guest

Post by Guest »

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.
Same problem.

Any solutions?
Dag
Posts: 2
Joined: Wed Oct 19, 2005 8:10 pm

Post by Dag »

Any solutions?
I am back, as a member. :D

I have found one solution, but WARNING, I am no expert.

Found a line in PHP.INI(in /etc); Session auto start. Changed that from 0 to 1 and everthing works fine.

Don't know what it does, but it works.

Anyone got more info on the effect of this?

Thanks.

Dag from Norway.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

This is from the manual:

session.auto_start boolean
session.auto_start specifies whether the session module starts a session automatically on request startup. Defaults to 0 (disabled).

By setting it to 1 all your scripts will start sessions automatically.
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
Jan

session has expired

Post by Jan »

Dear Klement,

I want to really thank you for that great SW, but again want to ask if you plan to repair the ssesion eror on PHP5: session has expired

I can´t downgrade my PHP because runing very big intranet apps based on PHP5.

Please could you just give me some hint how to solve the problem with the:
session has expired error witch is just in HESK, in other apps are sessions OK, I also made your Sessions tests and its ok.

many thanks in advance for your help

best regards

Jan
admin@ttesa.cz
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

I'm not even sure what is wrong, I haven't yet made any tests with php5.

Do you have MySQL enabled in your php5 (it isn't by default!)?
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
Anthony
Posts: 1
Joined: Wed Oct 26, 2005 8:21 pm

quick and dirty fix

Post by Anthony »

For all of you that have this bug, try editing the mysql database. Change the password for the admin account, then log in with that password. This will allow you access to the admin feature. Hope that helps everyone.

By the way, nice script.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: quick and dirty fix

Post by Klemen »

Anthony wrote:For all of you that have this bug, try editing the mysql database. Change the password for the admin account, then log in with that password.
Hmm, why would that make any difference?
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
Jan

some ideas ?

Post by Jan »

Hi All,

still seems we haven´t any solution ! What about you Klemen ? do you have some ideas how to solve it.

thanks for help

yours

Jan
max

Post by max »

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

spataro

hello

Post by spataro »

Please to meet you. Perhaps a solution, now it works for me.

Thirst of all: i was using an old version of the software, not too much: after some months i discovered someone added a category and changed my password.

I've updated hesk to the last and also to the very last php 4.4.x. Oh, i've also installed italian traslation file.

Now the some problem of session.

I've opened admin.php file, in line 98 there is the session error recognition:

<h3 align="center">Login</h3>

<?php
if ($_REQUEST['notice']) {
echo "<p align=\"center\" class=\"important\">Your session has expired, please login using the form below.</p>";
}
?>

Now, for debug purpouse, i've tried to print out $_request notice:

<h3 align="center">Login</h3>

<?php
if ($_REQUEST['notice']) {
echo $_REQUEST['notice']."<p align=\"center\" class=\"important\">Your session has expired, please login using the form below.</p>";
}
?>

I develop also in php, but i still don't know php as a professional.

The very strange fact is now works.

I'd like to understand, so i made other changes in line 98.
The result ? changing in every way text in line 98 the script works. And now i changed to the previous one, to the original: it works too...
I'm becoming mad.
I can't believe: i login and logout without problems, even with opera and explorer.
I'm on windows.
spataro

hello ... n.2

Post by spataro »

I've discovered what happened: i've reinstalled old admin.php , not the latest: Version: 0.93b from July 5, 2005 (patch 0.93.1)

I think this upgrade should patch the unauthorized access i discovered, but it doesn't work.

However solution should be starting from line 98, even in new version.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Printing out $_REQUEST['notice'] doesn't have anything to do with sessions working or not. When testing always download the latest version from
http://www.phpjunkyard.com/free-helpdesk-software.php
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