Dot Net Interview Tips

  1. Data that can be stored in a cookie? 4 KB/2096 Bytes
  2. Most Browsers provides a limit of storing cookies is 20. If new cookie came, it will discard the old one but some of browser support up to 300 cookies.
  3. Persistent Cookies can be called as permanent cookie. Which is stored in client hard drive until it expires. While non persistent cookies can be called as temporary cookies, if there is no expire time defined then the cookie is stored in the browser’s memory.
  4. Difference in persistence and non persistence cookies is persistence cookies should have an expiration time defined within it.
  5. Where does cookies are stored in local hard drive? C:\Documents and Settings\{Current Login User}\Cookies
  6. To expire the persistent cookies before its expiration time the expiration time as the Now.DateTime.AddDays(-1);
  7. Cookie Munging’ is a concept of ASP.Net which lets users to manage session variables if their browsers do not support cookies. By default, ASP.Net uses cookies to store session ID’s. But, as we all know that some browsers do not support cookies. To overcome from this ASP.Net uses ‘Cookie Munging’ to manage session variables without cookies.
    How Cookie Munging works?
    When user requests page from server ASP.Net adds encoded session ID to every href in page. When user clicks a link ASP.Net decodes that encoded session ID and passes it back to the page the user is requesting. Now, the requesting page can use that ID to set or retrieve any session variables. This all happens automatically, if asp.net detects that the users browser do not support cookies.

1 comments:

Anonymous said...

I found this site using [url=http://google.com]google.com[/url] And i want to thank you for your work. You have done really very good site. Great work, great site! Thank you!

Sorry for offtopic