c# - mulltiple account cookies on single machine -


Consider this, if someone is a user of a web application

like:

A visits someWebSite.com to some person as a general user (registered)

  http cookie cookie = new HTTP cookie ("last Visit "); Cookie.value = DateTime.Now Toasting (); Cookie.Expires = DateTime.Now.AddDays (1); Response.Cookies.Add (cookie); Cookie.Expires = DateTime.Now.AddDays (1)   ); Response.Cookies.Add (cookie);  

Both cookies are related to the same domain, but how does the browser know about which account related cookies for two different accounts? If we use the following code to access it.

  If (requested. Cookies ["last" visit "] = tap) {string lastTimeUserVisited = Request Cookies ["LastVisit"]. Value; }  

Edit: This is my first time working on this cookie

I appreciate your patience

I do not understand the question. A single browsing session will not be different between two cookies. The last set that sets the server, changes the previous one. Obviously, two examples of Chrome running on two separate computers do not share cookies and send each instance their own example of cookies from the server in each request.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -