Results 1 to 4 of 4

Thread: ASP.NET - Why Always Session Expired

  1. #1
    Join Date
    Aug 2006
    Location
    Malaysia
    Posts
    1,576
    Rep Power
    188

    ASP.NET - Why Always Session Expired

    There are (A & B) two web server machines (Windows Server 2003).
    For the same application, using the same web.config, the session timeout is set to be 20mins.

    "A" machine hosting the application has no problem.

    "B" machine hosting the application always triggers Session Timeout/Expired immediately after the button is clicked, less than 1 second.

    Code:
    #region private void Page_Load(object sender, System.EventArgs e)
    private void Page_Load(object sender, System.EventArgs e)
    {
        // Put user code to initialize the page here
        if (!Page.IsPostBack)
        {
            // Initialise things
            // .....................
            // .....................
         }
         else
         {
              if (Session["dgInfo"] != null)
              {
              // Processing something
              // .....................
              // .....................
              }
              else
              {						    			  
                   Response.Write(@"<script>window.alert('Session 
                             Expired')</script>");
              }
         }
    }
    
    #endregion
    Any ideas to overcome this issue?
    Last edited by genzy; 10-05-2007 at 11:42 PM.

  2. #2
    Join Date
    Jun 2007
    Location
    Kuala Lumpur
    Posts
    165
    Rep Power
    150
    may i know what's da value for the variable dgInfo?

    hash
    Hash here..

  3. #3
    Join Date
    Aug 2006
    Location
    Malaysia
    Posts
    1,576
    Rep Power
    188
    It is for Datagrid.

    anyway, after the webserver is re-built (format/re-install), the problem no longer exist.

  4. #4
    Join Date
    Jun 2007
    Location
    Kuala Lumpur
    Posts
    165
    Rep Power
    150
    lol..ok..

    hash
    Hash here..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Rapishare [ expired on 6 dec 09 ]
    By anazhd in forum Other Webmaster-related Services and Promotion
    Replies: 0
    Last Post: 18-09-2009, 12:26 AM
  2. Bloggerunited.com down - domain expired?
    By Seanie in forum Blogging Discussion
    Replies: 0
    Last Post: 13-06-2009, 11:38 PM
  3. Disable php session ID in URL
    By webber in forum Website Programming
    Replies: 1
    Last Post: 08-03-2005, 03:12 AM
  4. Expired Domain Name Search Script
    By lcf in forum Website Programming
    Replies: 3
    Last Post: 13-05-2004, 01:31 AM
  5. php session *really need some help here!!*
    By lady_sephire in forum Website Programming
    Replies: 1
    Last Post: 29-06-2002, 02:18 AM

Posting Permissions

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

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39