We have an entire Order Entry system written in ASP - whatever version that goes with Windows 2000 Server (not ASP.NET).
In global.asa, we have:
sub Session_OnStart
Session("intOrderNo")=0
end sub
As it implies, this is used just about everywhere to tell the computer what row(s) to update or retrieve in the database.
Since a "Session Variable" spans windows and forms, if follows that Session Variables part of the Session State does not regress to its prior values when the back key is pressed.
This has, in the past, caused all sorts of security and corruption issues.
Our Order Desk has long since been educated to not use the BACK KEY, but we are allowing more and more customers to enter their own orders over the internet, and I'm a little embarassed each time I tell one "don't use the back key".
I don't know enough ASP to think of the best solution.
I believe the SESSION stuff is kept on the server, and BACK is done on the client. I'm unclear if BACK key would always entail a round trip back to the server, or if there would be some way to force that.
Here's some things I've considered:
1. Disable BACK key. Don't know of any way to do this except removing the whole menu bar. And even then, some mouses are equipped with back buttons, and there's keyboard shortcuts, etc. Is there a way to simply disable BACK?
2. Find some way on every page to sense if "back key was pressed". Create an include file for every .asp file that manages the problem. Probably a Javascript alert() that educates that user - seems hoaky.
Before I go too far down the "unusual solution" road, I just thought I would solicit some sage advice.
Suggestions?
In global.asa, we have:
sub Session_OnStart
Session("intOrderNo")=0
end sub
As it implies, this is used just about everywhere to tell the computer what row(s) to update or retrieve in the database.
Since a "Session Variable" spans windows and forms, if follows that Session Variables part of the Session State does not regress to its prior values when the back key is pressed.
This has, in the past, caused all sorts of security and corruption issues.
Our Order Desk has long since been educated to not use the BACK KEY, but we are allowing more and more customers to enter their own orders over the internet, and I'm a little embarassed each time I tell one "don't use the back key".
I don't know enough ASP to think of the best solution.
I believe the SESSION stuff is kept on the server, and BACK is done on the client. I'm unclear if BACK key would always entail a round trip back to the server, or if there would be some way to force that.
Here's some things I've considered:
1. Disable BACK key. Don't know of any way to do this except removing the whole menu bar. And even then, some mouses are equipped with back buttons, and there's keyboard shortcuts, etc. Is there a way to simply disable BACK?
2. Find some way on every page to sense if "back key was pressed". Create an include file for every .asp file that manages the problem. Probably a Javascript alert() that educates that user - seems hoaky.
Before I go too far down the "unusual solution" road, I just thought I would solicit some sage advice.
Suggestions?