Click here to Skip to main content
15,891,976 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friends.

I m working on a website.After doing login in application it logout very soon.
can u give me the reason for the same.
Posted
Comments
_Tushar Patil 3-Nov-11 7:18am    
Copy Paste Your Web.config file here..........?

There can be many reason for this.
as a First Aid,
1. Just check if you set a very short Session Timeout.
2. Check for memory leak or by any other reason your application pool is recycling.
3. Check if an anti-virus is accessing your bin folder frequently.
4. If you have huge data in database and using Entity Framework or similar thing, you must check for performance. This also causes Session Timout because of excessive memory recycles the application pool.

If not solved, please provide some more detail about your application.
 
Share this answer
 
same...check out your session time out...
 
Share this answer
 
check out your web.config for sessiontime out. if you are using SQL SERVER and entity framework dont forget to set multipleactiveresultset = true
 
Share this answer
 
Hello friends

session state timeout="300"
session state

i have set this time in my web config.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900