Page 1 of 1

Session expired while logging in as administrator

Posted: Sun Jul 23, 2006 8:47 pm
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

Posted: Mon Jul 24, 2006 10:06 am
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();
?

Posted: Mon Jul 24, 2006 2:37 pm
by buser
Klemen,

Beauty! Worked great!

Thanks,
Bryan

It worked Great!

Posted: Mon Jul 24, 2006 2:38 pm
by buser
Klemen,

Beauty! It worked great! Thanks!

Bryan

I am having the same problem

Posted: Fri Jul 28, 2006 3:12 am
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

Posted: Fri Jul 28, 2006 9:36 am
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?

Posted: Fri Jul 28, 2006 2:07 pm
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

Session expired while logging in as administrator

Posted: Sun Nov 26, 2006 8:18 pm
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

Posted: Mon Nov 27, 2006 12:33 pm
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.