Why does my game discussion forum log me out all the time?

Dear all, I have a gaming forum associated with a casino and games wiki. Users are often being automatically logged out. What can it be? Is it the way sessions are timed out? Something wrong with the server? Cookies not being handled correctly? Any help from those who have seen this on their sites would be most welcome.

2 Answers

PatchReviewer
PatchReviewerAnswered on 12/22
Best Answer

First, it’s most likely a cookie issue. If users are switching between the casino and the wiki, I suspect their session cookie is being overwritten or expiring prematurely. Session cookies may be set to the entire domain or the specific path. Make sure the server has a reasonable session timeout, as sessions will be dropped if a certain timeframe – e.g., 30 minutes – is exceeded without activity. If the site uses multiple subdomains (e.g., casino.yourdomain.com versus forum.yourdomain.com), the session may not carry over. Browser privacy settings such as “Do not track” or SSL can affect sessions. Try testing on other browsers or devices to make sure it’s not isolated to that one computer. Shared hosts may limit how long a session lasts. Look at the server log files to determine whether there are timeout errors or forced session resets. Additionally, third party add-ons or WAF software could be interfering with sessions. Give me a shout if you want me to take a closer look.

ForumRegular
ForumRegularAnswered on 12/22

The session cookie may be expiring. If the server is not refreshing the session id while the user is surfing, his session expires and he gets kicked out. Or perhaps it’s just that the cookies are not set to be persistent. Also, check the server log for “session destroyed” messages, and make sure the session cookie domain is correct (if you have a forum and wiki on separate subdomains). Quick solution: Increase session timeouts and make your cookies persistent. Test in Firefox. Still got problems? Try debugging your CMS sessions to see what happens.

Your Answer