Session is ALWAYS expired.

Helpdesk for my helpdesk software

Moderator: mkoch227

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

Session is ALWAYS expired.

Post by convert »

Script URL:
Version of script: the newest .93 i think
Version of PHP: 5.1
Hosting company: my computer
Have you searched THIS FORUM for your problem: YES for hours
(if not please do before posting)
If so, what terms did you try: i typed in every error that i received

Write your message below:

Ok, this is really frustrating now. I can get everything to work, but i cannot lot in. It just says, Session expired. Please use the form blow to log in.

Now, the weird thing is, it worked for the first two or three times, then it just stopped. I checked out my session directory, and it has all the sessions for every attempt. The sessions contain the name of the user, the passwords, the signature, and if not an admin, the groups allowed to browse.

My PHP file looks exactly like the author's. (found it in a post).
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

There has been a lot of talking here about session problems, have you tried all the suggestions? Read the posts about blank page after login, cannot login, etc...

You can start by uploading the phpinfo file:
http://www.phpjunkyard.com/extras/phpinfo.zip
and the session test file:
http://www.phpjunkyard.com/extras/session_test.zip

People have suggested many solutions in the old posts, try them!
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, i've tried both. The session test comes out perfect every time.

I've looked EXHAUSTIVELY all day on this board. I don't know what else to do. I really like your script, and i wish i could get it to work.
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Are you running Windows or Linux?

Have you tried these:

viewtopic.php?t=458#2211

viewtopic.php?t=542#2241

viewtopic.php?t=303&postdays=0&postorde ... rt=15#1846

viewtopic.php?t=303&postdays=0&postorde ... rt=15#1907

viewtopic.php?t=303&postdays=0&postorde ... rt=30#2116

If you turn debug mode ON in hesk_settings.inc.php do you get any other errors?

Have you tried with PHP 4.3.x?
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 »

Here is my setup:

Windows 2000 Server
IIS5
Latest Version of Hesk
Latest Version of PHP

I also tried it on PHP version 4.3.x and it didn't work there either, so i uninstalled it and install php 5.x.x.

I'll try those links now. Thanks.

Oh, when i check my session directory, all the sessions have data (they are only 0 bytes if i try to log in without a password or with a wrong password).
convert
Posts: 25
Joined: Fri Jan 13, 2006 9:48 pm

Post by convert »

:roll: Ok, i tried everything at this point. all the links, i even reinsalled php again!

The weird thing is, this:

The first time i installed it, it didn't work... i kept getting those session errors. Then i compared my phpinfo() file to yours. I noticed that trans_ssid was set to 0, i changed it to 1. Then it worked great! I was able to login, add accounts, everything. I closed my browser, ate some lunch, and when i came back, i couldnt' do anything again. same session errors. VERY WEIRD!
convert
Posts: 25
Joined: Fri Jan 13, 2006 9:48 pm

Post by convert »

Questions? When does the script print the error about a session being expired? What causes this error? Is it because it can't read a session id? If that's the case, maybe there is a permissions issue on the sessions folder.

Also, what should the $hesk_settings['server_path'] be? I have it set to "". What is this actually the path to, and what is it relative to? Im running windows, so can i just put in the full path, i.e.. (C:\web\hesk)?
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Yep, check if the session folder is writable. But if it works the first time you use it I don't see any reasons why it wouldn't work the second, third, ... time?

Yes, C:\web\hesk should work, just make sure you don't add the trailing \ after hesk folder!
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, it's writable. As far as the path to the hesk server, this is just the path to the root of the hesk folder, correct?

Man, im totally stumped with this one. Is there anything else i can do to help you help me??? Thanks.
convert
Posts: 25
Joined: Fri Jan 13, 2006 9:48 pm

Post by convert »

Oh, one more thing.... should the hesk settings server path be enclosed in double quotes or single quotes?
convert
Posts: 25
Joined: Fri Jan 13, 2006 9:48 pm

Post by convert »

Here is my code:

$hesk_settings['server_path'] = "D:\Inetpub\wwwroot\My web server\cgi-bin\helpdesk";

Notice how part of the path has spaces. Could this be causing a problem?
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Single quotes or double quotes, doesn't matter. That path should be ok, you should also get the correct path in install.php file.

If you are still having problems with sessions note it has nothng to do with the path of Hesk folder, but with the php or server setup.
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, im still having major problems. I've tried everything... i've reinstalled the entire server actually... Windows 2000 Server, mySql, PHP5.... everything. Same exact issue.
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

Since it works for hundreds of other people it is obvious something is wrng on your server. To be honest I don't know what, I am not very experiencedwhen it comes to handling servers, especially Windows ones.

All I can suggest installing PHP 4.3.x again and try again with that. Do you get any other errors with debug mode ON in hesk settings file? Do you get any erros in the PHP error log file?
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 »

Hmmm, ok... is there anything that i could do to help you help me... i could post the path for you, any settings?? Anything?

I bought a license as well.
Post Reply