Lost Session and Cookie Variables
Posted on 2003-02-24
When the user enters my app's virtual directory, the default.asp file is loaded. The user id and password is validated against the database. If user is valid, the db connection string is saved as a session variable. The user is then directed to the main menu page. There are seven forms in the app. Each form consists of a frameset page, a control page, and a database page. Each frameset page checks to see if the user is logged in by checking the value in the session variable that contains the db connection string. The logon page is located at the virtual directory, and all form pages are in subdirectories.
ISSUE: The user browses the application, loading pages into the browser, then returning to the main menu, without processing any information. After a certain series of forms are loaded, the session variables are mysteriously lost and the user is directed to log back into the app. The user can browse five of the forms limitlessly, without error (A Group). The user can browse the other two forms, limitlessly, without error (B Group). But if the user browses at least two of the A group forms and one of the B Group forms, the session variables are lost.
As a debug, I have added cookies to see if the problem was directly related to the session variables. While I was able to reset the session variables with the cookie variables on the first round of form loading, the second round of form loading resulted in the loss of session variables and cookie variables.
The timeout on the IIS server is set to 20 minutes and the form browsing resulting in my examples takes less than a minute.