 |
| General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category.
** PLEASE BE SPECIFIC WITH YOUR QUESTION **
When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

August 5th, 2004, 07:04 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2004
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
session time out
We had set the session time out for our application as 30. But with few minutes its come out of the login session. we are facing problem because whenever we go to other page its comes out of the session and we have to login again. Can u help me with the solution.
|
|

August 5th, 2004, 07:34 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
Is that 30 seconds or 30 minutes?
|
|

August 5th, 2004, 07:45 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2004
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
We had not mentioned as minutes or seconds.Can u tell me how to set the login session time in C# application?
|
|

August 5th, 2004, 08:03 AM
|
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
In Web.config file, <Sessionstate> tag is there.You can set the time for session using timeout attribute.
|
|

August 5th, 2004, 08:07 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
webconfig:
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>
|
|

August 5th, 2004, 09:43 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
You can also set it in IIS, or at the page level through Session.Timeout.
Brian
|
|

August 7th, 2004, 01:22 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2004
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
In web.config file, i have set the time as <sessionState timeout="40" />,but my problem is not solved. The session comes out within few minutes.
|
|

August 9th, 2004, 01:15 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2004
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Please can anyone tell me how to set the session time out for 20 minutes. In our project we r facing this problem since a long time, session end within few minutes.
|
|

August 9th, 2004, 01:59 AM
|
|
Friend of Wrox
|
|
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
|
|
lily,are u sure you dont close your explorer,maybe you are using Remove or Abandon
methodes...
--------------------------------------------
Mehdi.:)
|
|

August 9th, 2004, 02:27 AM
|
|
Friend of Wrox
|
|
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
|
|
in addition to them are u sure you dont have a tag like
<%@ Page EnableSessionState="False" %>
also
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
mode="off"
/>
--------------------------------------------
Mehdi.:)
|
|
 |