Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > asp.net security > october 2004 >

asp.net security : Session Coliiding


ariel
10/27/2004 11:20:39 AM
Hello there;

IT' there any posibility session can collide or mixed into another session(s), means two o more users logged with his own credentials and running differents scenarios ( mortgage application ) can see data from another logged user (?), we developed a web site ( .net/SQL ) and everything is going well so far , but I have a complain from other users ( three so far ) that they have seeing another data or data scenarios belonged to other user (?) . We have been tryed to replicate the problem but evrything is normal so far, Please anyone can tell me if this is posible. I will appreciatted any help or comments related to this.
Thank you very much.

---
WJ
10/28/2004 10:14:21 PM

[quoted text, click to view]

It would be "nearly" impossible to have two users running from different
clients (PC) heads on with one another. Simply there are 2 separate/distinct
sessions owned by these 2 users. Assume that you use Form Authentication.
User A reads a record (tRecord), your form will cache it with:

HttpContext.Current.Session["UserA"]=myRecord;

At a later time, user A comes back (same session), your form retrieves the
cached record with:

myRecord=(tRecord)HttpContext.Current.Session["UserA"];

With this assumption above, I do not think it is possible.

John




ariel
11/3/2004 12:22:12 PM
JHON;

Thank you for your reply. I was able to replicate the problem, and I am im[presed with the outcome. What realy happen is the following:

in the page load I have:

Sub page load()

if Not Page.IsPostBack then

function_a(Context.item("Object"))
Cache.Insert("MyDataSet1") = Context.item("Object")

else

function_a( Cache("MyDataSet1") ) 'event

end if

end Sub

When the page is post back due to an event the function_a will pass the Cache from another Session already happened in the server(?). Please let me know you though about it, I am really lost with this(?)
Thank you for your time

Ariel.





---
AddThis Social Bookmark Button