Session is ALWAYS expired.

Helpdesk for my helpdesk software

Moderator: mkoch227

convert
Posts: 25
Joined: Fri Jan 13, 2006 9:48 pm

Post by convert »

This is the address of my helpdesk:

https://www.cktechnology.com/cgi-bin/helpdesk/

Thanks!
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

It's much easier when I have your URL and can try things out myself. Ok, let's try a few things:

1. In hesk_settings.inc.php set these two variables to:

Code: Select all

$hesk_settings['hesk_url']="https://www.cktechnology.com/cgi-bin/helpdesk";
$hesk_settings['debug_mode']="1";
(make sure the hesk_url varible starts with https://)

also add this code somewhere in the settings file:

Code: Select all

ini_set("session.use_trans_sid", true);
Then let me know so I can test it.


2. You should try installing Hesk OUTSIDE your "cgi-bin" folder, for example to:
http://www.cktechnology.com/helpdesk

3. Post the URL where you uploaded
http://www.phpjunkyard.com/extras/phpinfo.zip
and
http://www.phpjunkyard.com/extras/session_test.zip


About the license - appreciated, but you should get the script WORKING before buying one!

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
convert
Posts: 25
Joined: Fri Jan 13, 2006 9:48 pm

Post by convert »

Thanks for trying to help me out, i really appreciate it. About the license, i'm sure i'll get it working ONE DAY, and even if i don't, your script is really cool, so you deserve the $11.60 USD.

Anyhow, i have implemented the code changes, but it's stuff that i've done all before. You can view the url now.

This is where my test settings are:

www.cktechnology.com/cgi-bin/tests/phpinfo.php
www.cktechnology.com/cgi-bin/tests/session_test.php
convert
Posts: 25
Joined: Fri Jan 13, 2006 9:48 pm

Post by convert »

Klemin, the password for one of the users, mike.s is password. I don't know, maybe it will help you on the admin.php page.
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Ok, upload this file over the original one and let me know, might give us some clues:
http://www.phpjunkyard.com/extras/admin_main_test.zip
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
convert
Posts: 25
Joined: Fri Jan 13, 2006 9:48 pm

Post by convert »

Ok, All done... hope it helps :roll:
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

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
convert
Posts: 25
Joined: Fri Jan 13, 2006 9:48 pm

Post by convert »

Ok, all uploaded...
convert
Posts: 25
Joined: Fri Jan 13, 2006 9:48 pm

Post by convert »

Oh boy, this is annoying.. your test says everything is OK... what could this problem be?? Listen, i can give you anything you need if it will help you help me... i can even give you access to my server if you need.
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Actually the test showed not everything is ok (duh!) because the $_SESSION array is empty!
convert wrote:Listen, i can give you anything you need if it will help you help me...
How about you buy me something from my wish list :wink:

Just kidding, I prepared two more tests, let's see if you can login to Hesk with any of these two? Please download and upload:

1. Download and upload:
http://www.phpjunkyard.com/extras/php5_test_1.zip
Then see if you can login successfully (other admin pages might not work yet, just say if you can login).

If it works OR if it DOESN'T please try the second test anyway, download and upload:
http://www.phpjunkyard.com/extras/php5_test_2.zip
then REBOOT your computer and try login in again (again we are just after a successful login, not other admin pages).

Let me know if any (or both?) works for you.

I will keep my fingers crossed :D

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
convert
Posts: 25
Joined: Fri Jan 13, 2006 9:48 pm

Post by convert »

Ok Sir, the first one did not work.. got the same "session expired" error.

The second one is weird... i don't think it worked, but i got a bunch of errors. Please try it out yourself: www.cktechnology.com/cgi-bin/helpdesk/admin.php


Thanks again!
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Ok, delete

Code: Select all

ini_set("session.use_trans_sid", true);
from the settings file and try again with the 2nd test.

I am researching this problem at the moment and I see a lot of people are having problems with passing sessions in PHP5 ... if that doesn't work I have another thing to try, let me know how it goes.
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
convert
Posts: 25
Joined: Fri Jan 13, 2006 9:48 pm

Post by convert »

Nope, same error...
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hm, ok. What to try next? I see your PHP is compiled with "CGI/FastCGI" as "Server API". I read on a forum that the solution was to use the ISAPI module instead of the cgi exe. So, if you still have the will, try uninstalling PHP and installing it with ISAPI instead of FastCGI. You will find instructions how to install with ISAPI here:
http://www.peterguy.com/php/install_IIS6.html
(the 3rd chapter)

If you decide to give it a go let me know how it goes...
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
convert
Posts: 25
Joined: Fri Jan 13, 2006 9:48 pm

Post by convert »

Ok, i really, really want this to work, but before i uninstall and reinstall, i wonder if there is anything you can suggest?? The weird thing.. the really weird thing... it worked the first time i logged in AFTER setting the session id to 1. This was a while ago, when i first installed it. What the heck is going on witht the sessions?? I see them in the session directory, so they must be passing.
Post Reply