session expired

Discussion in 'ASP.NET' started by sivaprasadnkv, Jul 28, 2008.

  1. sivaprasadnkv

    sivaprasadnkv New Member

    Joined:
    Aug 25, 2007
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    0
    HI,

    I am using VS2003 with vb.net
    in web.config i gave timeout as 20 minutes it is working and logout after timeout period.
    if i gave time out as 1 hour ie 60 minutes then it is not working and its logout after 20 min.
    what is the problem..


    plzzzz reply me its urgent
     
  2. AbhinavMoudgil

    AbhinavMoudgil New Member

    Joined:
    Aug 9, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi...

    If you won't define any time in your session then also your session will expire in 20 minutes as the default time for a session to expire is 20 mins.
    Kindly let me know that where exatly are you defining your session expiry time and also what code are you using.
    I will suggest you to use the code given below to expire your session
    <configuration>
    <sessionstate
    mode="inproc"
    cookieless="false"
    timeout="60"
    sqlconnectionstring="your connection string;user id=<user id>;password=<password>"
    server="server name"
    port="your port number"
    />
    </configuration>


    Hope this may help . If you still feel like having problem then let me know your code you are using to expire your session.

    Regards


     
  3. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice