Page 1 of 1
Session log in error
Posted: Fri Mar 05, 2021 3:39 pm
by gspurger
Script URL: is an internal link only
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: session session time out time
Write your message below: we have a Virtual Server windows 2012R2 that just did an accumulative update and we have three instances of the HESK software on it. After the update, all three will not let you log into the admin panel and gives the user a session time out error. The last update was Feb 6 and I dont know of anything that would have changed to cause this problem. Any ideas at this point to look would be greatly appreciated.
Gary
Re: Session log in error
Posted: Fri Mar 05, 2021 8:10 pm
by Klemen
I presume you updated our server software, not Hesk?
The first thing that comes to mind is that your PHP sessions are broken. Please upload the session test file from this topic to your server, open it in your browser and see what it says:
viewtopic.php?f=13&t=138
You'll also find a phpinfo file in the above topic that should give us details about your PHP setup.
Re: Session log in error
Posted: Sat Mar 06, 2021 12:20 am
by gspurger
I cant link to the pages as they are in a locked network with no outside access. However the session test showed a failure - session data not saved, ask your hosting company to verify why PHP sessions are not working.
I can provide the sessions section of phpinfo here...
session
Session Support enabled
Registered save handlers files user
Registered serializer handlers php_serialize php php_binary wddx
Directive
Local Value
Master Value
session.auto_start Off Off
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_httponly Off Off
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 5 5
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path C:\Windows\temp C:\Windows\temp
session.serialize_handler php php
session.upload_progress.cleanup On On
session.upload_progress.enabled On On
session.upload_progress.freq 1% 1%
session.upload_progress.min_freq 1 1
session.upload_progress.name PHP_SESSION_UPLOAD_PROGRESS PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix upload_progress_ upload_progress_
session.use_cookies On On
session.use_only_cookies On On
session.use_strict_mode Off Off
session.use_trans_sid 0 0
Does this help?
Re: Session log in error
Posted: Sat Mar 06, 2021 8:33 am
by Klemen
This means PHP sessions (in general, not Hesk only) are not working on your server.
Usually, this means PHP cannot write to the session's temporary folder. Maybe IIS_IUSRS Read/Write Permission is missing in C:\Windows\temp
Re: Session log in error
Posted: Mon Mar 08, 2021 1:49 pm
by gspurger
I found it from using the two scripts you provided. I noted the session save path was c:\windows\temp and upon doing some more reading about the session variable, noted the folder had an issue. The permissions were correct in IIS and on the server but when I tried to look into the folder, kept getting the waiting bar like it was having issues seeing into the folder. Knowing a volume in NTFS can only accommodate around 4.2 million files (its a FAT type limitation) got me wondering. Once in the folder, there were over 2.2 millions files in the FOLDER. Windows was having issues writing to the folder. Once we removed the files (still not sure why or what caused the system to not purge periodically) the system started acting normally and actually has a noticeable speed increase.
Thanks for the session checker! That pointed me in the right direction.
Gary
Re: Session log in error
Posted: Mon Mar 08, 2021 2:54 pm
by Klemen
Ouch, 2.2 million files?
Glad to hear you got it working
