Results 1 to 7 of 7

Thread: Session timeout

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Session timeout

    I have an application, which requires a user login.
    The customer I have does not want the session to time out.
    I have set the webconfig timeout to 160000 to prevent this but I still get an error when the time passes 20 minutes because I use session objects.
    Can I automatically refresh the browser every 10 minutes if it is not used, so the user can always use the application again after e.g. 3 hours?

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Session timeout

    Hey,

    Can you show the web.config section that you have used?

    Gary

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Re: Session timeout

    I have just used this:

    <authentication mode="Forms" >
    <forms loginUrl="default.aspx" protection="All" defaultUrl="index.aspx" timeout="160000"></forms>
    </authentication>

    after 20 min my normal sessions has timed out

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Session timeout

    Hey,

    Have a look here:

    http://msdn.microsoft.com/en-us/library/ms972429.aspx

    It is actually the sessionState section of the web.config file that you need to change.

    Hope that helps!

    Gary

  5. #5
    Hyperactive Member dnanetwork's Avatar
    Join Date
    Oct 2007
    Location
    Mumbai
    Posts
    349

    Thumbs up Re: Session timeout

    Quote Originally Posted by hpl View Post
    I have just used this:

    <authentication mode="Forms" >
    <forms loginUrl="default.aspx" protection="All" defaultUrl="index.aspx" timeout="160000"></forms>
    </authentication>

    after 20 min my normal sessions has timed out
    well this is fine but you need make some changes in the session settings too

    your session is "InProc" i guess ...try making session Timeout = 30;

    if u r page does not expire after 20 mins...increase the timeout of session

    which means now u can control timeout

    else

    we'll figure out somethin else...

    we

  6. #6
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618

    Re: Session timeout

    If you are using IIS 6 I think there is a session timeout in there also.
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

  7. #7
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Session timeout

    Quote Originally Posted by hpl View Post
    I have an application, which requires a user login.
    The customer I have does not want the session to time out.
    I have set the webconfig timeout to 160000 to prevent this but I still get an error when the time passes 20 minutes because I use session objects.
    Can I automatically refresh the browser every 10 minutes if it is not used, so the user can always use the application again after e.g. 3 hours?
    That's a bad idea. You should inform your client the necessary of session time and why it is being used.

    If you really need , you could go for this one
    Please mark you thread resolved using the Thread Tools as shown

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width