...

View Full Version : Session problem



patrikorup
03-22-2010, 10:20 AM
Hi,

I would like some help to find a solution for an error with a site that we've built.

The site's built using PHP 5 / MySQL 5.

The problem is the following:

We've built a portal for a customer who reports that he gets logged out randomly after just a few seconds/minutes. He just clicks around on the menu, and suddenly gets logged out. The session just 'dies'.
The problem seems to occure regardless server (we have tried the system on several webservers / webhosting companies).

After searching for the error, we haven't been able to assign the problem either to the server (where the system is normally hosted) nor to the client.

The reasons why we don't belive it's server related error:
- The problem emerges regardless to the server.
- Other customers' configurtation of the system is working perfect. They never get's logged out. We have even let the current customer try some of these other sites - and they are working. He doesn't get logged out. This implies that it should be something with the system (where we havent found any errors, see below):

The reasons why we don't belive it's system related error:
- We havent found anything in the system code that could cause a logout (such as a session_destroy(), which only exists in the file that handles the logout).
- Other configurations that other customers are using are working without problemt and we have never heard from them that this problem exists. Other customers are using as well different PC/Windows as Mac/Safari/Firefox configurations.

The reason why we don't belive it's client related error:
- The error seems to emerge with different computer configurations, although it's known that the error occurs with these configurations:
- Internet Explorer IE7+8
- Firefox (PC)
The system works error free using Safari and Firefox (Mac).
We are not using a firewall.

Best regards,
Patrik

Fumigator
03-22-2010, 03:37 PM
So are you saying you are unable to replicate this error in your test environment, or even using the same portal your customer is using?

mlseim
03-22-2010, 04:24 PM
I wonder if that customer is having the same problem on other websites as well?
Perhaps they have an issue with their PC/browser setup?

patrikorup
03-22-2010, 05:01 PM
So are you saying you are unable to replicate this error in your test environment, or even using the same portal your customer is using?

The problem occur on both test and production environment.


I wonder if that customer is having the same problem on other websites as well?
Perhaps they have an issue with their PC/browser setup?

I don't think so.
The problem seems to be specific just to just this specific system and it's configuration.

We managed to recreate the same problem scenario at our office, using a PC with Windows Vista and IE 8.

MattF
03-22-2010, 05:38 PM
We managed to recreate the same problem scenario at our office, using a PC with Windows Vista and IE 8.

Mentioning that info in your first post would have been helpful. Check the basics first, namely cookie settings. Are you browsing across www and non www paths, btw?

patrikorup
03-23-2010, 09:02 AM
Mentioning that info in your first post would have been helpful. Check the basics first, namely cookie settings. Are you browsing across www and non www paths, btw?

Absolutely, sorry if I wasn't clear enough in my first post.

It's always same path. Cookie settings seems to be correct.

I've been in contact with the host the site is runing on and the host we've the test environment on. They changed the session folder but without any result.

We've tried to find a solution to this problem since the end of last year and it's making me frustrated. So - I'm thankful for all the help we can get with this. :)

mlseim
03-23-2010, 12:28 PM
Is there anything different in the .htaccess file, than on your other sites?

Also, can you compare PHP info from one site to another and see any differences?

Save this as "phpinfo.php", upload it, and run it:


<?php
phpinfo();
?>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum