473,396 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Session problems

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

Nov 19 '05 #1
3 1370
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!
***************************

"Efrain Flores" wrote:
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

Nov 19 '05 #2
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.
"Cowboy (Gregory A. Beamer) - MVP" <No************@comcast.netNoSpamM> wrote
in message news:72**********************************@microsof t.com...
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!
***************************

"Efrain Flores" wrote:
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

Nov 19 '05 #3
I'd second the single form idea. AFAIK Session just stores information in
the Cache.

--
Ben Strackany
www.developmentnow.com
"Cowboy (Gregory A. Beamer) - MVP" <No************@comcast.netNoSpamM> wrote
in message news:72**********************************@microsof t.com...
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!
***************************

"Efrain Flores" wrote:
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

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: mrbog | last post by:
Tell me if my assertion is wrong here: The only way to prevent session hijacking is to NEVER store authentication information (such as name/password) in the session. Well, to never authenticate...
7
by: Adam Short | last post by:
I'm having all sorts of problems with Sessions, I've been using them for years with out a hitch, all of a sudden the last 6 - 12 months since getting our new Win2003 server it's all gone shakey!!!...
3
by: Nicolae Fieraru | last post by:
Hi All, I have a lot of problems with the web site www.ggsurf.com.au I host on www.gnxonline.com and I want to find out if it is my own problem or theirs. I try to use session cookies and it...
3
by: headware | last post by:
I have an issue that I've been encountering in an ASP application I'm working on. Most of the application is written in ASP, but there is one page written in ASP.NET. The ASP.NET page needs to have...
3
by: Craig Storey | last post by:
I have a form where users logged in using sessions can edit articles in a WYSIWYG editor. Some of them take their time and don't like to save their work very often and occassionally the sessions...
3
by: Scott | last post by:
Hello, we are having problems displaying non-aspx files (images, style sheets) since we have upgraded to the 1.1 framework when using a cookieless session (sessionID in the url). Check out...
9
by: William LaMartin | last post by:
I have a problem, mentioned here before, of Session and Application variables disappearing at one site but not at others or on my development computer. The problem is illustrated by an example...
13
by: Alexander Widera | last post by:
hi, who has seen the follow problem or could help please? i visit a page .... i read a sesssion-var . ... everythink works...... i visit the page again..... error ... the sessionvar is null .... i...
18
by: BillE | last post by:
When a user opens a new IE browser window using File-New-Window the integrity of an application which relies on session state is COMPLETELY undermined. Anyone who overlooks the fact that...
1
by: KidQuin | last post by:
I am having problems with session value between pages. Happening in both firefox and IE7. I go between page by links so I know it's not header changes. I use session_start as the first line on the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.