Page 1 of 5
Session is ALWAYS expired.
Posted: Fri Jan 13, 2006 9:54 pm
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).
Posted: Fri Jan 13, 2006 10:26 pm
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!
Posted: Fri Jan 13, 2006 10:32 pm
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.
Posted: Fri Jan 13, 2006 11:40 pm
by Klemen
Posted: Sat Jan 14, 2006 2:42 pm
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).
Posted: Sat Jan 14, 2006 2:59 pm
by convert

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!
Posted: Sat Jan 14, 2006 3:08 pm
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)?
Posted: Sun Jan 15, 2006 8:55 pm
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!
Posted: Mon Jan 16, 2006 2:35 pm
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.
Posted: Mon Jan 16, 2006 2:37 pm
by convert
Oh, one more thing.... should the hesk settings server path be enclosed in double quotes or single quotes?
Posted: Mon Jan 16, 2006 2:40 pm
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?
Posted: Tue Jan 17, 2006 7:29 pm
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.
Posted: Tue Jan 17, 2006 7:50 pm
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.
Posted: Sat Jan 21, 2006 12:28 pm
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?
Posted: Sat Jan 21, 2006 3:48 pm
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.