473,699 Members | 2,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.redire ct 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 1388
In general, the problem only happens when you loose session for a particular
user, so it is not inherent in Reponse.Redirec t. 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.Redire ct, 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.redire ct 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.netNoS pamM> wrote
in message news:72******** *************** ***********@mic rosoft.com...
In general, the problem only happens when you loose session for a particular user, so it is not inherent in Reponse.Redirec t. 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.Redire ct, 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.redire ct 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.netNoS pamM> wrote
in message news:72******** *************** ***********@mic rosoft.com...
In general, the problem only happens when you loose session for a particular user, so it is not inherent in Reponse.Redirec t. 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.Redire ct, 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.redire ct 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
7118
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 a user from information you got from the session. Each secure app on a site must challenge the user for name and password, each and every time the user accesses it (not just once and then store it in the session). If a secure app is multi-page,...
7
2308
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!!! Our development server started life as an NT4 machine and has been simply upgraded from one operating system to the next, it is now a cross, NT4 Server, Win2000 Server, Win2003 server. All development sites work fine and under heavy stress. ...
3
1770
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 doesn't work fine. Eventually I created some test scripts, which can be found in here: www.ggsurf.com.au/info.asp There is a link to Set the Session("TransactionID") = 25 and the page
3
2844
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 access to the ASP Session data to run correctly. In order to achieve this I create my own HTTP request for a certain ASP page with the name of Session variable that I want is stored in the query string of the request. The requested ASP page...
3
2805
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 expire and their work goes poof. (I've suggested editing off-line and simply copy+paste but they prefer the editor.) After a lot of searching I've found the main culprit is session.gc_maxlifetime and I can set it longet like... ...
3
3531
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 our file system set up below. Now, in an aspx page, we set as the "src" of our images something like "../images/animage.jpg". If the current actual url in the browser is something like http://server/webapp/(someSessionID)/forms/form1.aspx
9
2450
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 at http://www.lamartin.com/dotnet/sessiontestset.aspx, were I set Session, Application and Cache variables on the first page and then on the second page view them as the second page is refreshed every five seconds. Before 10 refreshes, the...
13
2838
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 visit again .... null ... again .... it works ..... again ... it works ... again ..... null....... and so on and on .... it does randomly work or not.... what is this effect?
18
3434
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 File-New-Window creates an instance of IE in the same process with the same SessionID as the parent window is in big trouble. This fundamentally restricts the usefullness of using session state management. I probably missed it somewhere - can...
1
8970
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 page creating the session and the new page. The problem just start when code was untouched. I am using PHP 4.4.7 on an Apache Server. Any help or suggestions would be welcomed here is my php.ini file ; Handler used to store/retrieve...
0
8685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9171
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7743
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6532
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.