Same session browser issue.


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Same session browser issue.

  1. #1
    Join Date
    Nov 2006
    Posts
    1

    Same session browser issue.

    Hi,

    I have experienced a problem when working in multiple browsers,
    ie. When working in a web form, I open a new browser from the exising browser (control +N) and after that If i made changes in the second form and saved it, then I look in the 1st browser the changes will effect on the 1st browser also. My questions are:

    1) Is this second browser gets the same session from the 1st browser.
    2) due to this we can save null values in the db even there are validation restrictions, so how to solve this issue?

    pls advice..

  2. #2
    Join Date
    Nov 2006
    Posts
    24
    A man goes to the doctor and says "it hurts when I do this." The doctor says, "then don't do that."

    I really have no idea, actually, about sessions interacting with windows opened via CTRL-N. I do know that if your validation scheme is allowing null values in the database, then you have a faulty validation scheme. Any code that talks to the database should be isolated in a "data class", or a "data layer" in your application. Any code that writes to the database should perform its own validation. Nothing the user does on the browser side should be able to circumvent your server-side validation routines.

    You're asking the wrong question. It doesn't matter if the user opens 16 windows and hits the submit button 5 times, or has JavaScript disabled, or hits the back button, etc. The error is in your application. Review your stored procedures and server-side validation code.

  3. #3
    Join Date
    Dec 2006
    Posts
    3

Similar Threads

  1. Session issue on window.open
    By Alex in forum ASP.NET
    Replies: 1
    Last Post: 08-25-2002, 09:56 PM
  2. NT And browser issue
    By ariel in forum ASP.NET
    Replies: 0
    Last Post: 01-24-2002, 01:40 PM
  3. Session events, browser close
    By Vinod in forum Java
    Replies: 2
    Last Post: 11-09-2000, 10:05 AM
  4. Replies: 0
    Last Post: 09-13-2000, 10:18 AM
  5. Ending session when browser is closed
    By Ananda in forum ASP.NET
    Replies: 0
    Last Post: 07-31-2000, 11:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center