Automatic sign out problem from yahoomail, gmail and other sites

While I sign in in my email account and other registered sites like yahoomail, gmail, elance, freelancer etc. from my PC (OS - Windows XP), after few minutes, it automatically signs out. I've tried the browsers Firefox, Chrome, but the result is same. Please help me out from this issue.