Session getting expiring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • renjucool
    New Member
    • Jun 2007
    • 15

    Session getting expiring

    I am developing an online bug tracking system in asp.net.IT is implemented now in our office,at a time around 10-15 peoples are using.Web application is hosted in a local machine(core 2duo-1 gb ram).My problem is when some user submit a bug his session is expiring and redirecting to home page.my code is

    -----------------------------------------------------------------------------------------------------------------

    protected void Page_Load(objec t sender, System.EventArg s e)
    {
    if ((string)Sessio n["User"] == null)
    {
    Response.Redire ct("LoginHome.a spx");
    }

    if (!Page.IsPostBa ck)
    {
    //some code getting value from db as dataset and storing the dataset in user //session

    Session["userBug"] =(DataSet)dsFil ter;
    }

    -------------------------------------------------------------------------------

    the dataset has 25 colums and more than 300 records.how much data we can store in session object.i'm using inproc session and time out is 20min



    RENJUCOOL
    RENJUR
    www.renjur.co.n r
  • shweta123
    Recognized Expert Contributor
    • Nov 2006
    • 692

    #2
    Hi,

    Try setting your TimeOut through web.config. Or goto IIs Manager click on Virtual Directory properties and set timeout through configuration settings.
    Also you can look at this Link


    Originally posted by renjucool
    I am developing an online bug tracking system in asp.net.IT is implemented now in our office,at a time around 10-15 peoples are using.Web application is hosted in a local machine(core 2duo-1 gb ram).My problem is when some user submit a bug his session is expiring and redirecting to home page.my code is

    -----------------------------------------------------------------------------------------------------------------

    protected void Page_Load(objec t sender, System.EventArg s e)
    {
    if ((string)Sessio n["User"] == null)
    {
    Response.Redire ct("LoginHome.a spx");
    }

    if (!Page.IsPostBa ck)
    {
    //some code getting value from db as dataset and storing the dataset in user //session

    Session["userBug"] =(DataSet)dsFil ter;
    }

    -------------------------------------------------------------------------------

    the dataset has 25 colums and more than 300 records.how much data we can store in session object.i'm using inproc session and time out is 20min



    RENJUCOOL
    RENJUR
    www.renjur.co.n r

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      Hmm,interesting .
      Are you calling Session.Abandon () anywhere? Like anywhere at all?
      Are you sure the 20mins has not expired?
      Do you have kind of error trapping that could be getting triggered without you know it?

      Also, everytime you do a build/compile/publish or even just start/stop the website, all your session data will be flushed.
      So if the web-application is actively being developed, your sessions will get dropped.

      Comment

      • renjucool
        New Member
        • Jun 2007
        • 15

        #4
        Originally posted by Plater
        Hmm,interesting .
        Are you calling Session.Abandon () anywhere? Like anywhere at all?
        Are you sure the 20mins has not expired?
        Do you have kind of error trapping that could be getting triggered without you know it?

        Also, everytime you do a build/compile/publish or even just start/stop the website, all your session data will be flushed.
        So if the web-application is actively being developed, your sessions will get dropped.


        yes i set the time out in web config and iis as 480 minutes.I'm using session.abandon () when the user click signout button.My problem is not yet solved.

        Comment

        Working...