473,320 Members | 1,846 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,320 software developers and data experts.

Session sharing problem using Ctrl + N

Hi,

I am facing a very typical problem. I have a wizard like application,
where user enters information by moving back & forth between the pages.
At the end of wizard the data is submitted into database. I store the
information entered by user on pages, in a session object and finally
destroys this session object at the end of wizard after inserting data
in database.

Everything is fine until a user spawns a new window using Ctrl+N.
Because the session Id is the same, the session object also gets shared
between the two windows.

Due to the sharing of session object when a user changes something in
1st window; it gets reflected in 2nd window also. This is causing a lot
of problem.

Can you please suggest me some method through which I can make sure
that whenever user presses Ctrl + N, a new session get's started up
or any other possible solution so that I can store data across the
multiple pages of wizard.

Thanks.

Regards,

Vikas Khandpur

Mar 30 '06 #1
1 1901
you will have simular problems with posting from the cache. there is no way
to detect an open window (ctl + n) from a refresh as they look exacly the
same from the server.

the best fix is to use a transactionid with each page of your wizard, so you
can detect reposts.

-- bruce (sqlwork.com)
"Vikas" <vi******@yahoo.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
Hi,

I am facing a very typical problem. I have a wizard like application,
where user enters information by moving back & forth between the pages.
At the end of wizard the data is submitted into database. I store the
information entered by user on pages, in a session object and finally
destroys this session object at the end of wizard after inserting data
in database.

Everything is fine until a user spawns a new window using Ctrl+N.
Because the session Id is the same, the session object also gets shared
between the two windows.

Due to the sharing of session object when a user changes something in
1st window; it gets reflected in 2nd window also. This is causing a lot
of problem.

Can you please suggest me some method through which I can make sure
that whenever user presses Ctrl + N, a new session get's started up
or any other possible solution so that I can store data across the
multiple pages of wizard.

Thanks.

Regards,

Vikas Khandpur

Mar 30 '06 #2

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

Similar topics

3
by: Keith Patrick | last post by:
I have an app (A) that has a link to another (B) app that it spawns in a new window. The new window has a link back to app A, opening a third window (let's call it A2). The problem is, I need A2...
1
by: Augustin Prasanna. J | last post by:
Hi, When the user opens a new browser instance using 'Ctrl-N' and logs in with a different user login, both the browser instances begins to share the same session. Any suggestions on how to handle...
3
by: Mark | last post by:
Ok, I know that .net inherently does not share session data across asp.net projects, but is there any decent work around to this. We already have a big chunk of our application using the asp.net...
4
by: Mark | last post by:
If you have a parent window that opens a child window using JavaScript, is the Session state between the two windows separate or shared? Thanks in advance. Mark
2
by: Guy | last post by:
Is there a way to prevent new browsers windows from sharing session variables with the original window? Our team has an ASP.Net app that lets users analyze portfolio risk given certain portfolio...
2
by: Jim Tilson | last post by:
I'm having a problem with Session ID being duplicated across multiple IE windows. I edited the web.config for my ASP.net web application to display trace information on the page. I open an IE...
6
by: Andrew Robinson | last post by:
I am running two servers with a hardware network load balancing device. I know that to share session information between the two servers I need to implement some type of SQL based session...
3
by: tshad | last post by:
I have noticed that if I open an IE session and log onto my site. I can open another browser session and that browser will have same session variables as the first. This causes problems for my...
26
by: BillE | last post by:
Some ASP.NET applications use Session Variables extensively to maintain state. These should be re-written to use viewstate, hidden fields, querystring, etc. instead. This is because if a user...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.