Session problems

E

Efrain Flores

Hi

I am experimenting session problems in ASP.NET. I am developing a data entry
system composed of 3 different aspx pages. The values entered on the form
fields are stored in sesion variables. These values are saved when the user
presses the Next page button. This applies for the 3 pages. Once they are
complete, I empty the values of the sessions into the database (Oracle). The
users are telling me that some of the data is missing in some of the pages.

This random session problem is very confusing since sometimes the session
values of the first page are missing, and sometimes the values of the
sessions of the second page are missing. I read somewhere that if I use
response.redirect to go from one page to the other, the behavior mentioned
above could happen.

The server does not have an antivirus software installed.

I'll appreciate your help
 
G

Guest

In general, the problem only happens when you loose session for a particular
user, so it is not inherent in Reponse.Redirect. If possible, consider using
panels on a single page (multi-part form) as you will not have to load
session (all items will reside in ViewState). This is also much easier to
validate than a multi-page form.

NOTE: Even on a multi-page form, you have the potential of pulling
information from a previous form. Not possible with Response.Redirect, AFAIK,
but very possible with Server.Transfer.

Another option is to use cache instead of Session, but you have to have a
way to identify a particular user's info in cache, so it is not much better
than your current architecture unless 100% of the user's are logged into a
network.
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
E

Efrain Flores

The panel suggestion is an excellent idea. I'll look into it. I am going to
make some tests, but I strongly feel that this solution should do it

Thanks, I'll let you know how it goes.
 
B

Ben Strackany

I'd second the single form idea. AFAIK Session just stores information in
the Cache.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,796
Messages
2,569,645
Members
45,371
Latest member
TroyHursey

Latest Threads

Top