When a content advisor is used (Tools => Internet Options => Content => Enable Content advisor), then the Content Advisor hits the root page of the site. (does a query with /).
There is also another case when this happens. If you have only one portion of the web application secured, if security is not configured properly, this can happen.
msomar
Participant
843 Points
390 Posts
How I can set Connection TimeOut
Nov 12, 2011 12:01 PM|LINK
Hello,
I have login.aspx page , after each login to the control panel the admin can still just one minute or less and returned to login.aspx page ,
I have added this code with my web.config but nothing change.
<authentication mode="Forms" > <forms name="Admin" defaultUrl="AR\Admin\Default.aspx" loginUrl="Login.aspx" timeout="9000000"/> </authentication>
so what code shall I do in my web.config to make the connection does't disconnect forever ?
Ruchira
All-Star
42975 Points
7025 Posts
MVP
Re: How I can set Connection TimeOut
Nov 12, 2011 12:04 PM|LINK
Hi,
check the below link
http://forums.asp.net/t/1283350.aspx/1/10
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.msomar
Participant
843 Points
390 Posts
Re: How I can set Connection TimeOut
Nov 12, 2011 12:29 PM|LINK
Thanks,
Actully I tried all the codes in this post http://forums.asp.net/t/1283350.aspx/1/10
put there is no benefit
abiruban
All-Star
16038 Points
2734 Posts
Re: How I can set Connection TimeOut
Nov 12, 2011 12:42 PM|LINK
Hi
pls refr
http://weblogs.asp.net/wallen/archive/2005/03/22/395496.aspx
http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.connectiontimeout.aspx
http://forums.asp.net/t/1293488.aspx/1
***DON'T FORGET TO CLICK “MARK AS ANSWER” ON THE POST IF HELPED YOU.
msomar
Participant
843 Points
390 Posts
Re: How I can set Connection TimeOut
Nov 12, 2011 01:32 PM|LINK
Please take a look of my code
<authentication mode="Forms" > <forms name="Admin" defaultUrl="AR\Admin\Default.aspx" loginUrl="Login.aspx" timeout="9000000"/> </authentication>vijayst
All-Star
16558 Points
3216 Posts
Microsoft
Re: How I can set Connection TimeOut
Nov 12, 2011 02:07 PM|LINK
Are you logging off the current user if he is trying to login in more than one place? This can happen if you use Content Advisor:
http://devdirective.com/post/36/asp-net-mvc-random-sign-offs-and-tempdata-loss
http://liteblog.codeplex.com
msomar
Participant
843 Points
390 Posts
Re: How I can set Connection TimeOut
Nov 12, 2011 02:17 PM|LINK
Yes the current user,
and I dont try to login from diffrent places.
vijayst
All-Star
16558 Points
3216 Posts
Microsoft
Re: How I can set Connection TimeOut
Nov 12, 2011 02:57 PM|LINK
Is it possible some unhandled exception is terminating the session?
http://liteblog.codeplex.com
vijayst
All-Star
16558 Points
3216 Posts
Microsoft
Re: How I can set Connection TimeOut
Nov 12, 2011 03:02 PM|LINK
When a content advisor is used (Tools => Internet Options => Content => Enable Content advisor), then the Content Advisor hits the root page of the site. (does a query with /).
There is also another case when this happens. If you have only one portion of the web application secured, if security is not configured properly, this can happen.
http://liteblog.codeplex.com
msomar
Participant
843 Points
390 Posts
Re: How I can set Connection TimeOut
Nov 12, 2011 03:35 PM|LINK
Ok, take a look of my code
in login.aspx page:
if (dr.Read()) { FormsAuthentication.RedirectFromLoginPage (txtEmail.Text.ToString(), false); Response.Redirect("AR/Admin/Default.aspx"); } }<connectionStrings> <add name="ConnectionString" connectionString="server=mssql506.ixwebhosting.com;database=C259555_kaffMSDB;User ID=C259555_kaffuserMS;Password=555; Connect Timeout=90000000" providerName="System.Data.SqlClient"/> </connectionStrings><system.web> <sessionState timeout="5400"/> </system.web><authentication mode="Forms" > <forms name="Admin" defaultUrl="AR\Admin\Default.aspx" loginUrl="Login.aspx" timeout="9000000"/> </authentication>