Results 1 to 15 of 15

Thread: Session Expire Problem!!!!!!

  1. #1

    Thread Starter
    Lively Member AjayKumar's Avatar
    Join Date
    Nov 2003
    Location
    Noida
    Posts
    94

    Unhappy Session Expire Problem!!!!!!




    Hi all,
    I am developing an application in Asp.net using C#.I have a small problem.I have set session timeout 360 minutes like this.
    <sessionState
    mode="InProc"
    stateConnectionString="tcpip=127.0.0.1:42424"
    sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
    cookieless="false"
    timeout="360"
    />
    but my session is expiring within some minutes.Is there any solution for that?
    Is urgent please help!
    __________________
    HI ITs exciting!!!!!
    HI ITs exciting!!!!!

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    Re: Session Expire Problem!!!!!!

    isn't timeout in seconds ?? if that's the case then this means you set the timeout to 6 minutes .

  3. #3
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Session Expire Problem!!!!!!

    Pirate is right, a sqlconnection's timeout property is the time (in seconds) to wait for a connection to open. The default value is 15 seconds.

    So you might want to set your timeout to 21600 (gosh, that is long. you sure about that?)
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Session Expire Problem!!!!!!

    I don't think I agree. I believe the TimeOut value is minutes, so 360 is correct.

    What version of IIS are you running? What OS? Windows 2003 by any chance? Because I ran into a similar problem a while back and found a very very obscure solution to it.

  5. #5
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Session Expire Problem!!!!!!

    I also had doubts, but checked on msdn before I posted. You migth want to check.
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Session Expire Problem!!!!!!

    I couldn't find anything. Did you?

  7. #7
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  8. #8
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    Re: Session Expire Problem!!!!!!

    The Frog is sentenced to death by the laws of VBForums .

  9. #9
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Session Expire Problem!!!!!!

    Before I get the axe on my neck, that's connection timeout, not session timeout. Am I missing something here?

  10. #10
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    Re: Session Expire Problem!!!!!!

    Apparently,we're talking about connection timeout , aren't we ?

  11. #11
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Session Expire Problem!!!!!!

    Ok..my turn to eat humble pie (maybe you too Pirate)

    The Session Timeout property of the sessionState elelement specifies the number of minutes a session can be idle before it is abandoned. The default is 20.

    Sorry for the confusion AjayKumar!
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  12. #12
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Session Expire Problem!!!!!!

    Ladies and Gents, our feature presentation for tomorrow: A double hanging tomorrow: StrangerInBeijing and Pirate, to be hanged by their noses!

  13. #13
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Session Expire Problem!!!!!!

    12 post and back where we started. Why AjayKumar's session expires after minutes?
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  14. #14
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I blame the link , it's deceptive .

  15. #15
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Session Expire Problem!!!!!!

    Quote Originally Posted by StrangerInBeijing
    12 post and back where we started. Why AjayKumar's session expires after minutes?
    Possibly because the IIS process is crashing and restarting again. He'll have to check event viewer for more details.

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