Session is ALWAYS expired.

Helpdesk for my helpdesk software

Moderator: mkoch227

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

Post by Klemen »

Hmm, how about this one:
http://www.phpjunkyard.com/extras/admin.zip

Also please upload the ORIGINAL admin_main.php back to the server and the admin.php from the file above.

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
mrmagill
Posts: 2
Joined: Mon Feb 20, 2006 5:57 pm

Post by mrmagill »

n3rxs wrote:ok I tired both sets of files in the zips and I already had debug to 1 and still nothing. I get no error messages at all.
I was having the same problem everyone else is having here, session always expired. Tried the various tips. Then I discovered something: If I closed all browser windows, opened a new one and accessed the script, it worked fine. If I should click the email link in a "New Ticket" report, however, I'd always get "Session Expired" and be unable to log in. Close the windows, open a new one, log in, give the ticket number from the email, works fine. Kind of unhandy, but at least I can get to my tickets now which I could not do before.

The really odd thing is that I changed absolutely NOTHING from the time it worked find to the time it didn't. Anyway, this info FYI, maybe it will help someone.
Mark R. Magill
Word for Life World Ministries
www.wordforlife.com
n3rxs
Posts: 9
Joined: Wed Feb 15, 2006 8:47 pm

Post by n3rxs »

ok, sorry for delay was really busy, tried the latest fix by Admin here and still no luck.
ron351
Posts: 14
Joined: Tue Feb 07, 2006 3:59 pm

seems to be working

Post by ron351 »

So far so good, the hesk seems to be working ok.
It may of been the adding a 1 to the script like you mentioned or who knows.
It is a very nice program so far.
I look to donate soon.
Ron
http://game-wiz.com | http://speedyecards.com
Game Site Ecard Site
Chuck
Posts: 2
Joined: Mon Mar 13, 2006 2:15 pm

Session Expired while loging in to Admin.php

Post by Chuck »

Site URL = http://www.roseinternetdesign.com
URL to hesk = http://www.roseinternetdesign.com/hesk
URL to hesk admin = http://www.roseinternetdesign.com/hesk/admin.php
Version = 0.93 from July 5, 2005 (patch 0.93.1)
Version of PHP = 4.3.2
Host = http://www.web.com
I have searched for three days now. Tried yours and everone elses suggestions and nothing. Everything works fine when I create tickets, I receive the the emails and can track them as well. But when I try to log in under Admin.php I get the below error message:
"Your session has expired, please login using the form below"

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

I also run EasyPHP and mysql on my windows XP laptop and the program works great. I really like hesk and wish to use it on my site.

Here is the PHPinfo file link for you:
http://www.roseinternetdesign.com/hesk/phpinfo.php

I have also enabled debugging $hesk_settings['debug_mode'] to 1
and
added the following script to hesk_settings.inc.php just below "do edit below here"
ini_set("session.use_trans_sid",true);
and
http://www.roseinternetdesign.com/hesk/session_test.php
http://www.roseinternetdesign.com/hesk/ ... _test2.php

I also tried changing the script in Admin.php on line 62 to:
$_SESSION+=hesk_dbFetchAssoc($result);
and still nothing. Should I change this back?

Any help with matter would be great! This prob is really bugging me, mostly cause I really want to use this app.

Thank you for time,
Chuck
Charles W. Spangler
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

Nice to see some people actually put a lot of effort in debugging themselves :wink:

One thing to try would be changing line 71 in admin.php from

Code: Select all

session_regenerate_id();
to

Code: Select all

// session_regenerate_id();
The session_regenerate_id(); was causing problems before...

See if that works and let me know.

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
Chuck
Posts: 2
Joined: Mon Mar 13, 2006 2:15 pm

You're the PHP guru!

Post by Chuck »

Klemen,

Thank you very much for your timely response. That fixed the problem I was having. For your efforts I am going to purchase the license from you to help with your programming efforts. Again, thank you very much. Hesk is a wonderful script! I am also placing a link on my business site to PHPJunkyard leting people know how good your scripts are and how wonderful the service was I received from you with help.

I was also playing around with the script and made two user friendly changes. One to the english.inc.php file and the other in submit_ticket.php
submit_ticket.php = under line 143
<h3 align="center"><?php echo $hesklang['record_ticket']; ?>!</h3>
and
english.inc.php = about line 216 in /*Customer Interface*/
$hesklang['record_ticket']='Please record your ticket number for later reference';
These were added in case the client does not recieve the email with the tracking ID and forgot to make a note of it earlier. It is just a reminder to them before they exit Hesk.

Sincerely,

Charles W. Spangler
Charles W. Spangler
mrmagill
Posts: 2
Joined: Mon Feb 20, 2006 5:57 pm

Post by mrmagill »

Klemen Stirn wrote:Hi,

One thing to try would be changing line 71 in admin.php from

Code: Select all

session_regenerate_id();
to

Code: Select all

// session_regenerate_id();
The session_regenerate_id(); was causing problems before...

See if that works and let me know.
Didn't help on mine at all, sure wish it could have been that simple.

Thanks for looking into it, though. I'm basically at the mercy of the code, since I'm not a coder in this script language myself.
Mark R. Magill
Word for Life World Ministries
www.wordforlife.com
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

@chuck: Thanks for the suggestion, will add something like that to the next official version.

@mrmagill: Seems like you have problems with your borwser accepting sessions? If you can give me the URL of your Hesk, change admin password to default one (or send it to me via PM) and upload http://www.phpjunkyard.com/extras/phpinfo.zip I will look for any obvious problems.

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
Thunderbolt7
Posts: 1
Joined: Thu Mar 23, 2006 8:10 pm

Post by Thunderbolt7 »

Site URL: http://www.theonionbag.com/
URL to hesk = http://www.theonionbag.com/php/hesk/
URL to PHPinfo = http://www.theonionbag.com/php/hesk/phpinfo.php
Version of script: 0.93.1
Version of PHP: 4.3.10
Host: http://www.interkey.net
Have you searched for your problem: Yes!
If so, what terms did you try: All the solutions offered in this thread with the exception of changing the PHP Server API from "CGI/FastCGI" to "ISAPI". On my machine, the session_test.php file indicated the $_SESSION array is empty.

Just as the user "Chuck" has done, I have also enabled debugging $hesk_settings['debug_mode'] to 1

and added the following script to hesk_settings.inc.php just below "do edit below here"
ini_set("session.use_trans_sid",true);

My situation is a bit more strange that the others- two of the computers here can login just fine, while two others cannot. All four machines are running both IE version 6.0.2900.2180.xpsp_sp2_gdr.050301-1519 and FireFox 1.5.0.1 with the default web settings in each. Again, two machines can login in either browser, while on the other two, neither work. The fact that any of the machines can login makes me believe that the issue isn't on the server side, but I can't pinpoint any discrepancies on either of the trouble machines that would cause this issue to arise.

Notably, I was able to login for the first time as the administrator on this machine, but each subsequent attempt has been met with the dreaded "Your session has expired, please login using the form below" error message.

Any help you can offer would be greatly appreciated.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

You probably have the same probloem as the topic starter, see page 3 for a solution:
viewtopic.php?t=624&postdays=0&postorder=asc&start=30

Your PHP uses CGI/FastCGI, try building PHP with ISAPI (or ask your host to do it).
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
ron351
Posts: 14
Joined: Tue Feb 07, 2006 3:59 pm

Session Expired still

Post by ron351 »

URL: http://cmcamper.com/hesk/index.php
Version of script: 0.93.1
Version of PHP: 4.4.1
Host: Ipowerweb
Have you searched for your problem: 100 times
If so, what terms did you try: Looked at every post 10x

I did all suggestions and changes to script lines and am back at the same error message at admin login.
I ran all download tests also and they passed, and still am unable to get admin to login.
Session expired.

Then i got password not right which was no biggie.

Now I have the original upload to the server since none of the changes seemed to work.
What can this issue truely be here?

The cgi thing I doubt will apply to me because all of my other login programs work fine at the admin areas and I have probably 10 of them that login just fine.
I give up and now turn to help again if anyone has another suggestion.
Ron
Ron
http://game-wiz.com | http://speedyecards.com
Game Site Ecard Site
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

In your previous post you said it works ok:
viewtopic.php?t=624&start=45#2983

What did you do there to make it work?
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
ron351
Posts: 14
Joined: Tue Feb 07, 2006 3:59 pm

It did now it dont

Post by ron351 »

Klemen Stirn wrote:In your previous post you said it works ok:
viewtopic.php?t=624&start=45#2983

What did you do there to make it work?
I don't know I have tried so many things.
I am going to completely wipe it out again and reinstall it and see what happens.
Right now it keeps saying wrong password which it is not.
I changed the password in mysql because it said wrong password, and both old and new password dont work.
I can change the username in mysql and it shows the change on the login page immediately, but I will be darned if the password will accept.

So here I go again with the 4th installation maybe the 5th, I forget now.
Ron
Ron
http://game-wiz.com | http://speedyecards.com
Game Site Ecard Site
ron351
Posts: 14
Joined: Tue Feb 07, 2006 3:59 pm

It works again

Post by ron351 »

Klemen Stirn wrote:In your previous post you said it works ok:
viewtopic.php?t=624&start=45#2983

What did you do there to make it work?
Klemin, I reinstalled this and it works fine now.
Maybe there are ghosts doing this.
Anyway I may hang up some garlic and a cross and hope no more problems arise.

I think why my password was not working is I probably used auto detect file uploading to the server using ws_FTP.
I used ansii this time and so far so good
I logged out and in several times, almost had a heart attack when it logged in with no problems.
I also created a 2nd administrator as a backup in case the original one dont go for some reason.
Now thinking, I won't know if the last re-upload and bad password was because I didn't use admin as the password or if it was the auto detect for FTP upload.
Anyway I will see if this runs ok for the next month, it is a VERY NICE program, and if I go a month without error, I will be donating for all of your hard work.
http://cmcamper.com/hesk/
Ron
http://game-wiz.com | http://speedyecards.com
Game Site Ecard Site
Post Reply