Wrox Programmer Forums
|
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
 
Old August 5th, 2004, 07:04 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.

 
Old August 5th, 2004, 07:34 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Is that 30 seconds or 30 minutes?

 
Old August 5th, 2004, 07:45 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default

We had not mentioned as minutes or seconds.Can u tell me how to set the login session time in C# application?

 
Old August 5th, 2004, 08:03 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

In Web.config file, <Sessionstate> tag is there.You can set the time for session using timeout attribute.

 
Old August 5th, 2004, 08:07 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

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"
    />

 
Old August 5th, 2004, 09:43 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

You can also set it in IIS, or at the page level through Session.Timeout.

Brian
 
Old August 7th, 2004, 01:22 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

 
Old August 9th, 2004, 01:15 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

 
Old August 9th, 2004, 01:59 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

lily,are u sure you dont close your explorer,maybe you are using Remove or Abandon
methodes...

--------------------------------------------
Mehdi.:)
 
Old August 9th, 2004, 02:27 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.:)





Similar Threads
Thread Thread Starter Forum Replies Last Post
session time out info nasirmunir PHP How-To 1 August 22nd, 2008 03:07 PM
session time out problem jaya929 ASP.NET 2.0 Professional 2 July 9th, 2008 02:15 AM
unset session at specified time knight Beginning PHP 5 March 17th, 2004 09:24 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.