Re: Session data and Control-N issue
- From: bruce barker <nospam@xxxxxxxxxx>
- Date: Thu, 08 Nov 2007 12:30:24 -0800
you need a little more work. you store a request guid on the page. as pages postback, you save the guid. if a postback happens for an existing guid, you redirect to a new session.
you can use the same technique with standard sessions. the request guid is an index into the session.
-- bruce (sqlwork.com)
Amir Tohidi wrote:
Hi Jesse.
Thanks for the reply.
1) Our business objects can be quite big so sending them down to the browser is not option (e.g. ViewState). In fact, we are looking at caching our objects to disk on our servers to free up memory and just storing a "pointer" to them in the Session.
2) Even with this approach the user can still press Cntrl+N can't they? Wouldn't I still get the same problem?
Thanks
Amir
"Jesse Houwing" wrote:
Hello Amir,
HiYou basically have two options
Our application was using Session variables to store business object
for our Web Forms successfully until someone opened a cloned IE window
using Control-N key press.
The cloned window ends up sharing the same business object as the
original window which results in interesting behaviour. For example,
if you modify the business object in one window, it is also
effectively modified in the other.
Our users do not want this behaviour.
What is the recommended approach for addressing this issue.
Please note that because of DDA rules, we are not allowed to use
JavaScript on our pages, so I need solutions that do not rely on
JavaScript.
Thanks in advance
1) Don't use the session only, but a page specific storage, like viewstate to identify which object to modify. You can still store th eobject in the session, but use a key stored in the viewstate to retrieve it.
2) switch to cookieless sessions. That way you can start a seperate session by entering a clean URL. That URL will the automatically get a new SessionID assigned.
--
Jesse Houwing
jesse.houwing at sogeti.nl
- References:
- Re: Session data and Control-N issue
- From: Jesse Houwing
- Re: Session data and Control-N issue
- Prev by Date: Re: streaming mp3 files without allowing download
- Next by Date: Re: For each statement
- Previous by thread: Re: Session data and Control-N issue
- Next by thread: Re: Session data and Control-N issue
- Index(es):
Relevant Pages
|