Session is ALWAYS expired.

Helpdesk for my helpdesk software

Moderator: mkoch227

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

Post by Klemen »

A quote from online PHP manual:
For all IIS5 (W2K) + PHP users with sessions dropping:

I was tearing my hair out with $_SESSION[] variables being lost between pages on a header("Location: ...") command.

Fortunately another user on here had posted something that helped me... the solution was to use the ISAPI module instead of the cgi exe.

Hope this helps someone in the same situation.
And this is the exact case you are having, the $_SESSION is being lost after a header("Location:..."); redirect. You should give the ISAPI module a chance. The thing is if Hesk is having such problems, so will other scripts using these 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
convert
Posts: 25
Joined: Fri Jan 13, 2006 9:48 pm

Post by convert »

:D :D :D :D
Thank GOD!!! IT finally worked! You were right, the problem was using the .exe version rather than the ISAPI version. I didn't want to uninstall php because it would screw up my IIS config, so i just changed the application mappings to point to php5isapi.dll rather than php-cgi.exe. That was that... works PERFECTLY!!!

THANK YOU SOOOOO MUCH!!!!
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Glad to hear it works now :D

I didn't know you can simply switch API from cgi to ISAPI, but I know now ;)

You should upload the ORIGINAL hesk files now (the ones you were replacing - admin.php, admin_main.php).

So good luck with Hesk, may it serve you well! And remember, reviews and comments welcome :wink: 8)
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 »

Yeah, you can switch from cgi to isapi on the fly... php is still installed the same way, the only difference is how the webserver (IIS in my case) forwards the http requests. So now, they foward it to the ISAPI module rather than the CGI module. In fact, i can use some sites on my server with CGI and some with ISAPI.

Thanks Again.

I have a request though: this is so neat, this HESK, i think you should create a "customer portal" type program. you know, where customers can log in and mange their accounts. It would be handy for SOOO many websites, especially eccomerce.

Just my 2cents.
ron351
Posts: 14
Joined: Tue Feb 07, 2006 3:59 pm

Post by ron351 »

convert wrote: I have a request though: this is so neat, this HESK, i think you should create a "customer portal" type program. you know, where customers can log in and mange their accounts. It would be handy for SOOO many websites, especially eccomerce.

Just my 2cents.
There is actually a pretty nice free script that has customer login for their account.
[REMOVED]
Give that a try, works fine and installs easily.
You can set up FAQ and a number of things with this one.
This here program hesk is really nice, and I to am also getting session expired, almost like I have timed out and needs reset, and if I cant get it to go, I will just redirect my visitors to my other help desk
I got from [REMOVED]


Edited by Klemen: Sorry, won't allow advertising other scripts here. If you have problems with Hesk we can help you with it, but that's it.
Ron
http://game-wiz.com | http://speedyecards.com
Game Site Ecard Site
ron351
Posts: 14
Joined: Tue Feb 07, 2006 3:59 pm

Post by ron351 »

I did have a problem with the issue here.
Seems to go round and round and no solution, but see many ways to try.
I for some strange reason got the same message, and installed, reinstalled and really didnt do anything different except put a http://full path in and it seems to log in without the session expired.
As for the other script I had mentioned, sorry, it is easier to install, but yours is easier to navigate.
I will take PMs instead of posting the url from now on if anyone was interested.


There is actually a pretty nice free script that has customer login for their account.
[REMOVED]
Give that a try, works fine and installs easily.
You can set up FAQ and a number of things with this one.
This here program hesk is really nice, and I to am also getting session expired, almost like I have timed out and needs reset, and if I cant get it to go, I will just redirect my visitors to my other help desk
I got from [REMOVED]


Edited by Klemen: Sorry, won't allow advertising other scripts here. If you have problems with Hesk we can help you with it, but that's it.[/quote]
Ron
http://game-wiz.com | http://speedyecards.com
Game Site Ecard Site
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

If you have problem with a script of mine feel free to post it here, as you see I do provide support and try to help anyone who has such problems (even though my scripts are free of charge). But please do not post links to other scripts as the links will be removed.

No offence, but your very first post on this board sounded like an advertisement with links to other scripts. As far as I know you can be the author trying to get some promotion. This is support board for PHPJunkyard scripts, nothing more, nothing less.

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
n3rxs
Posts: 9
Joined: Wed Feb 15, 2006 8:47 pm

Post by n3rxs »

ok if I run the admin debug.php It creates the session and then I can go to admin.php and log in but if I try admin.php first no luck.
ron351
Posts: 14
Joined: Tue Feb 07, 2006 3:59 pm

Post by ron351 »

After a week I went to try and log in to the helpdesk again.
It reverted back to session expired trying to log into the admin area.
Everything is set right. I looked at all possible posts and tried several of them with no success.
Heres the server info
mysql version mysql Ver 12.22 Distrib 4.0.16
perl versionperl, v5.8.3
php version PHP 4.4.1
path to sendmail/usr/sbin/sendmail
path to perl /usr/bin/perl
perl module paths/usr/local/lib/perl5/5.8.3/i386-freebsd
/usr/local/lib/perl5/5.8.3
/usr/local/lib/perl5/site_perl/5.8.3/i386-freebsd
/usr/local/lib/perl5/site_perl/5.8.3
/usr/local/lib/perl5/site_perl

Any help is appreciated.
I am at a loss trying to figure this out.
Ron



Klemen Stirn wrote:If you have problem with a script of mine feel free to post it here, as you see I do provide support and try to help anyone who has such problems (even though my scripts are free of charge). But please do not post links to other scripts as the links will be removed.

No offence, but your very first post on this board sounded like an advertisement with links to other scripts. As far as I know you can be the author trying to get some promotion. This is support board for PHPJunkyard scripts, nothing more, nothing less.

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

Post by Klemen »

Hi,

Please upload this file (the PHP one inside) and place a link here:
http://www.phpjunkyard.com/extras/phpinfo.zip

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
ron351
Posts: 14
Joined: Tue Feb 07, 2006 3:59 pm

Link to PHP info

Post by ron351 »

Klemen,
Here is the link to the PHP info.
I am not sure what to look for or not look for.
Hope you do.
http://www.cmcamper.com/hesk/phpinfo.php
Ron

Klemen Stirn wrote:Hi,

Please upload this file (the PHP one inside) and place a link here:
http://www.phpjunkyard.com/extras/phpinfo.zip

Regards
n3rxs
Posts: 9
Joined: Wed Feb 15, 2006 8:47 pm

Post by n3rxs »

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

Post by Klemen »

Hello,

Here are instructions for both of you:

1. Set $hesk_settings['debug_mode'] to 1 in hesk_settings.inc.php then try to login again and see if you get any new error messages. If yes post them here.

2. Try with these files:
http://www.phpjunkyard.com/extras/php5_test_1.zip
Debug mode should be left set to 1. Close all browser windows (or even better - reboot computer) before you test it

3. Try with:
http://www.phpjunkyard.com/extras/php5_test_2.zip
Debug mode should be left set to 1. Close all browser windows (or even better - reboot computer) before you test it

4. You both have an extra user next to default admin, where have you added them? If Hesk worked before, what changes have you made to the server so it stopped working again (scripts don't just stop working for no reason)?

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
n3rxs
Posts: 9
Joined: Wed Feb 15, 2006 8:47 pm

Post by n3rxs »

ok will try, mine never worked. I have contacted host and they even made a post here somewhere. I made another user as admin using the admin-debug.php as i said before if i run admin_debug.php first it creates session and then I can switch to admin.php and log in but if I just use admin.php i cannot.
n3rxs
Posts: 9
Joined: Wed Feb 15, 2006 8:47 pm

Post by n3rxs »

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.
Post Reply