sessions in .aspx getting mixed up.

Discussion in 'Software' started by jet vedi, Jul 23, 2009.

  1. jet vedi

    jet vedi

    Joined:
    Jul 23, 2009
    Messages:
    2
    Hi,
    we maintain a web app, which handles lot of data using session variables. There is a page A and another page B. both the pages use the data from the same session variables. (I know this is rubbish, but we cant change that). Usually one can open either of the pages but not both. But recently we discovered a scenario that user can open page A, then navigate to page B simultaneously and then navigate back to page A (by posting back). So, earlier when page B is loading, it overrides the session variables with different values, and when page A is loaded on post back, this page is using the session data of page B. Therefore, data is getting mixed up.

    It is something like, when page A is opened, press Ctrl+N (open new window) and change the url pointing to page B. Now both the pages pocess same session which is causing the issue.

    Another interesting thing found is that instead of Ctrl+N, if a new browser (IE) is opened (not by Ctrl+N this time) when already page A is open, and url of page B is given in the new browser, then even though page B is loaded, this time both page A of browser 1 and page B of browser 2, contain two different sessions altogether, which is what I need.

    Now questions is, using Ctrl + N, is there any way to treat this request (sent by page B of new browser by Ctrl+N), as a fresh new request instead of already present request?

    I know that when a new request is placed on to server, the server will check for ASP.NET_SessionId cookie value. If nothing is found, then it craetes new session and sends the id so that browser can store in session id and maintain the state. But when I opened new window using Ctrl+N, I want that browser to treat this request as new (i.e. ASP.NET_SessionId is not present). Thereby, the server treats this a new request and creates another session and two different session states are achieved seperately by still using Ctrl+N.

    We use base pages (.aspx) and user controls (.ascx). SessionState is "SqlServer".

    Any thoughts are appreciated.
    jet vedi,
     
    jet vedi, Jul 23, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Naga_01
    Replies:
    0
    Views:
    1,421
    Naga_01
    Jun 6, 2006
  2. Armando Ruiz

    default.aspx or login aspx?

    Armando Ruiz, Jun 22, 2004, in forum: MCAD
    Replies:
    0
    Views:
    451
    Armando Ruiz
    Jun 22, 2004
  3. getmeaditi
    Replies:
    0
    Views:
    1,735
    getmeaditi
    Mar 10, 2009
  4. jet vedi

    Sessions in Aspx getting mixed up

    jet vedi, Jul 23, 2009, in forum: Software
    Replies:
    0
    Views:
    1,580
    jet vedi
    Jul 23, 2009
  5. lerameur101@gmail.com

    Getting previous IP sessions

    lerameur101@gmail.com, May 28, 2013, in forum: Computer Information
    Replies:
    0
    Views:
    356
    lerameur101@gmail.com
    May 28, 2013
Loading...

Share This Page