Your session has expired

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
chiew
Posts: 1
Joined: Fri Oct 26, 2007 11:33 pm

Your session has expired

Post by chiew »

Script URL:http://www.motto-ebusiness.com/hesk
Version of script: v0.94.1
Hosting company: hostgator
URL of phpinfo.php: http://www.motto-ebusiness.com/hesk/phpinfo.php
URL of session_test.php: http://www.motto-ebusiness.com/hesk/session_test.php
What terms did you try when SEARCHING for a solution: Your session has expired

Write your message below:

I know this is not a new issue, but I read through all the post and cannot find any solution. Yes, I can login to the admin, but after clicking on certain link and do some editing, the system log me out and the "session has expired" appear.

I cannot add new category, when I click on create category, it will log me out.

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

Post by Klemen »

Hi,

Your sessions seem to work fine (if you were able to install Hesk and login into admin). It's possible some other software (like anti-virus, anti-spyware or even firewall) is making problems to the session cookies. Do you have anything like this running?

I would suggest try testing it with some other browser (if you use IE try with FireFox and vice versa) or from some other PC. If you want you can PM me your admin password and I will test it from here.
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
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Ok, tested it now and was able to do everything (login, add categories, add canned responses, ...).

First thing you should do is clear your cookies and temporary Internet files, then close ALL browser windows (including this one), open Hesk again and see if it works for you.

As suggested before try with a different browser or from a different PC if possible. If you are running some software that might block cookies try disabling it (I know people had problems with Norton Internet security in the past).

Also note that sessions expire after a certain period of time (I think 24 minutes by default).
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
bfvww2
Posts: 5
Joined: Mon Dec 17, 2007 7:01 pm

Admin Session expired problem

Post by bfvww2 »

Script URL:http://www.ozone-serveur.eu/test/hesk/
Version of script: 0.94.1
Hosting company: Dedicated server (OVH)
URL of phpinfo.php: http://www.ozone-serveur.eu/test/hesk/phpinfo.php
URL of session_test.php: http://www.ozone-serveur.eu/test/hesk/session_test.php

Write your message below:
Hello! I have the same problem, but can't fix it. For my exemple, the probelm cames when clicked "Close" to the ticket. I can't relog into the admin script after this: a directly have the "Session expired" message.

When I delete session informations, cookies, cache and all i can iin firefox and IE i can re-login. Never had a similar problem with other scripts.

What to change in the php code to fix theses problems? I tried disable all my antivirus/firewall etc. but didn't work.

Thanks.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

From the session test file I would asy your sessions aren't working at all. Check if the folder you have set it php.ini exists and is writable by PHP scripts:
/var/lib/php5

Or you can try changing your session.save_path to /tmp in php.ini
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
bfvww2
Posts: 5
Joined: Mon Dec 17, 2007 7:01 pm

Post by bfvww2 »

All the sessions are working great on all the websites present on the dedicated server. The session path is writable and contain session informations...

I sent you by PM my php.ini file.

There is only you're script making problem with sessions :)
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Well the session_test file isn't working and this is as simple as PHP sessions can get:
http://www.ozone-serveur.eu/test/hesk/session_test.php

When you click the link the variable is always "False", should be "True" if sessions preseved through pages. Just tested with both IE7 and FF. The problem is 100% server-side.
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
bfvww2
Posts: 5
Joined: Mon Dec 17, 2007 7:01 pm

Post by bfvww2 »

yes but you got my php.ini and saw nothing's wrong!

And my other website use sessions without problems on the same server! How can you explain this? :? I know there is a server side problem but i can't explain it...
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

I just noticed something in your phpinfo (don't need the php.ini if I have phpinfo): in the php.ini you have session.cookie_domain set to "ozone-serveur.com" but you are trying to access the page from "ozone-serveur.eu".

This won't work of course because for security reasons browsers will not allow you to use cookies set under some other domain. Try disabling session.cookie_domain (set it to "") in the php.ini , then restart Apache, clear temporary internet files and see 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
bfvww2
Posts: 5
Joined: Mon Dec 17, 2007 7:01 pm

Post by bfvww2 »

ok!! If i set it to "" this will be considered as a wildcard?
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Just set it like this as it is in the original php.ini:

Code: Select all

session.cookie_domain =
Yes, will be considered as wildcard then.
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
bfvww2
Posts: 5
Joined: Mon Dec 17, 2007 7:01 pm

Post by bfvww2 »

Ok modified. Then i obtain TRUE to the test session, but nothing changes about you're script: i always have the same problem.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Sessions work fine now.

I tested the security number in hesk add a ticket and it works fine as well.

You are having problems logging in? Can you PM me your password (or create a user like "test") and I will try from here.
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