Session is ALWAYS expired.

Helpdesk for my helpdesk software

Moderator: mkoch227

ron351
Posts: 14
Joined: Tue Feb 07, 2006 3:59 pm

Re: It did now it dont

Post by ron351 »

ron351 wrote:
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?
So far so good.
I have opened and closed sessions maybe 20 times now.

One thing I noticed here is that if I go directly to the url to login as admin all looks ok.
Now
If I use the link in my email notifying me of a new message, when I click the link it goes to admin login and the message session expired appears.

Maybe this is normal, it scared me when i seen that dredded message, but I was able to log in without problems.

I will see after reboot if email links throw something into a loop with the session expired thing.
But I am still smiling.
Ron
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

If it works now I don't see any reasons why it wouldn't in a month. Usually if you are having problems with wrong password all you need to do is close all browser windows and try again or reboot your PC.

I discovered that the problem of sessions not being passed from one page (login) to another (for example main admin page) is a very often problem in the entire PHP community and I found like 20 different fixes that work for different people. A real pain in the a** :wink:
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

I got ya

Post by ron351 »

Klemen Stirn wrote:If it works now I don't see any reasons why it wouldn't in a month. Usually if you are having problems with wrong password all you need to do is close all browser windows and try again or reboot your PC.

I discovered that the problem of sessions not being passed from one page (login) to another (for example main admin page) is a very often problem in the entire PHP community and I found like 20 different fixes that work for different people. A real pain in the a** :wink:
I am only in to about 2 years with php now, still 70% to learn, and SQL I trial and error with that. Once mastered, there will be no stopping me.
This was the first program I ever did have a password issue with, but that may of been a memory glitch that time, I will never know.

At any rate, I tried today to log in, and good to go.
Thanks for standing by me and all your help in the past.
Like I said before, and I won't forget, in about a month or just a bit longer I will make a donation to a super program.

I hope all my visitors see and visit your site from the link under your program and you gain even more $$ for your work.
Ron
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

Re: I got ya

Post by Klemen »

Thanks for the kudos.
ron351 wrote:I hope all my visitors see and visit your site from the link under your program and you gain even more $$ for your work.
If I wanted to earn money with this program I wouldn't be giving it away for free would I? But yes, some extra $ doesn't hurt :wink:
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
dirko
Posts: 29
Joined: Wed Mar 29, 2006 7:41 pm

Post by dirko »

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).

Regards
Hallo Klemen. Here a request from Hungary. We are a starter in the sat-dsl bizz, and we found your Hesk Top of the Bill, no kidding.
Proudly we announced the "boss" in Germany that we managed to open a Trouble Ticketing system for the (coming) clients.
But the program says allways "session expired".
We have read on this board, but we do not understand a lot, that's why we ask you kindly to help us. The url of our selfmade site is www.satdsl.hu
If you are willing to help us, we could give you in PM the data for access to the server.
I hope you can/will help us. we spent so much time trying, we are desparate.
Thanks a lot,
dirko at dirko dot hu
hungary
:(
dirko
Posts: 29
Joined: Wed Mar 29, 2006 7:41 pm

error if we wnt to view the ticket

Post by dirko »

we get the error like this, when we want to look at the ticket.:

Parse error: parse error, unexpected '}' in /home/admin/domains/satdsl.hu/public_html/hesk/ticket.php on line 236


but in this ticket.php there is no such line..??

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

Post by Klemen »

Hi,

1. have you been editing ticket.php? Try with the original one...

2. What solutions for the session expired error have you tried so far?

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 I set up a clean RH server with the version of PHP you mentioned and I am gettign new funky errors.

Parse error: parse error, unexpected '}' in /var/www/html/support/inc/common.inc.php on line 188

Fatal error: Call to undefined function: hesk_session_start() in /var/www/html/support/admin.php on line 38


I am also getting that PHP Fatal error call to undefined function in my error logs for line 70 of admin.php.

If I fix line 70 by using // to comment it out then I get

Fatal error: Call to undefined function: session_regenerate_id() in /var/www/html/hesk/inc/common.inc.php on line 251
if I comment that one out I get the two at the top.

I have tried all your fixes here and no luck.
n3rxs
Posts: 9
Joined: Wed Feb 15, 2006 8:47 pm

Post by n3rxs »

ok I tried this circle again with a clean install and now I can log in, thanks.
dirko
Posts: 29
Joined: Wed Mar 29, 2006 7:41 pm

Post by dirko »

Klemen Stirn wrote:
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
:arrow: For us it worked, and we will donate too.

All fine now. :D

Thanks a lot
dirko
hungary

:arrow: test to help us please:
www.satdsl.hu/hesk
www.satdsl.hu/heskDE
www.satdsl.hu/heskNL
www.satdsl.hu/heskHU
dirko
Posts: 29
Joined: Wed Mar 29, 2006 7:41 pm

Post by dirko »

Hi again,
uhmm... that's what we experienced last night: all worked fine.
And happely we donated... :D

However, this morning, after starting the PC's, we got the same
error: session expired. :evil:

No way to open tickets as admin or other user with rights.

Really, we have spelled this forum, and tried every possible solution, but without result, however, last night before closing down, it worked.

And it is the perfect piece of software for us. But no way.

:?: Are there any more suggestions, or help, sothat we get this thing going?

Thanks in advance,
dirko
hungary
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

If it worked yesterday I don't see any reasons why it wouldn't today? All I can suggest is to do a CLEAN installation once again, change the session_regenerate_id() line and try again.

Thanks for purchasing the license. Just to make things clear - purchasing one doesn't mean you will get any better support than others. In case you don't get the script working contact me and I will refund your payment.

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