Session expired while logging in as administrator

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
buser
Posts: 3
Joined: Sun Jul 23, 2006 8:33 pm

Session expired while logging in as administrator

Post by buser »

Script URL: http://www.mrbspc.com/hesk/admin.php
Version of script: Latest
Version of PHP: 4.3.1
Hosting company: Self
Have you searched THIS FORUM for your problem: Extensively
(if not please do before posting)
If so, what terms did you try: session expired cannot login

Write your message below:

Hello,

I am running mysql, php and apache on a Solaris x86 box.
I installed your software and am unable to login to the admin console due
to session expired messages.

I tried everything I could find here to no avail.

Test script output:
http://www.mrbspc.com/hesk/tester/phpinfo.php
http://www.mrbspc.com/hesk/tester/session_test.php

My sessions are being created fine (I think) Here is the session data:
cat /tmp/sess_f3124b50e094519b87c30e90f0c86933
id|s:1:"1";user|s:13:"Administrator";pass|s:5:"admin";isadmin|s:1:"1";name|s:9:"Your name";email|s:19:"you@yourwebsite.com";signature|s:68:"Best regards,

Your name
Your website
http://www.yourwebsite.com";categories|s:0:"";notify|s:1:"1";

I cannot log in as Administrator.

Thanks for any help,
Bryan
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

Nicely formatted post with many info, should be an example to others :wink:

Have you tried changing line 70 in admin.php from

Code: Select all

session_regenerate_id();
to

Code: Select all

//session_regenerate_id();
?
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
buser
Posts: 3
Joined: Sun Jul 23, 2006 8:33 pm

Post by buser »

Klemen,

Beauty! Worked great!

Thanks,
Bryan
buser
Posts: 3
Joined: Sun Jul 23, 2006 8:33 pm

It worked Great!

Post by buser »

Klemen,

Beauty! It worked great! Thanks!

Bryan
lynxtdc
Posts: 2
Joined: Fri Jul 28, 2006 3:07 am

I am having the same problem

Post by lynxtdc »

I recently moved my hesk installation to a new server running PHP 5 and mySQL. The only change I made to the setup was to the password for the new database (I copied the contents from the old one) Everything works fine, and my clients are able to enter tickets...however, I can not log in to retrieve the tickets as either an admin user or a regular user ( I get the -- Your session has expired, please login using the form below. -- error) This happens on both IE and Firefox, I commented out line 70 in the admin.php file, restarted the computer, everything...any suggestions

Thanks,

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

Post by Klemen »

You can start by uploading these two files to the server and posting a link here:
http://www.phpjunkyard.com/extras/phpinfo.zip
http://www.phpjunkyard.com/extras/session_test.zip

Do you get any errors if you st debug_mode to 1 in settings file?
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
lynxtdc
Posts: 2
Joined: Fri Jul 28, 2006 3:07 am

Post by lynxtdc »

Klemen:

I do not get any errors after setting debug to "1"

here are the links to the files:

http://www.lynxtdc.com/tcsupport/session_test.php
http://www.lynxtdc.com/tcsupport/session_test1.php
http://www.lynxtdc.com/tcsupport/phpinfo.php

I ran the session test and it seemed to work fine

Paul
knightdog
Posts: 1
Joined: Sun Nov 26, 2006 8:09 pm

Session expired while logging in as administrator

Post by knightdog »

hello,
I seem to be having the same problem. I have installed the two scripts and they are located @

http://support.knightdog.biz/phpinfo.php
http://support.knightdog.biz/session_test.php

it is my system.
FC4 clean install, updated. I have searched thru the postings and have implemented all the fix's i have seen, editing php.info, editing line 70 of admin.php, ect.....

If you can take a look and see what is wrong i would be greatly appreciative. Thanks for the time this will take you. :oops:


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

Post by Klemen »

Hi,

phpinfo and session_test look ok.

Might be a long shot, but have you tried the very last post here:
viewtopic.php?t=303&start=30

If that doesn't work, send me a PM if you can give me FTP access to your server as I'd like to run some tests to see if I can find a permanent solution for this.
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