Login:  Password:    
forgot my password
sign up!
Search: 

Cookies - Course ASP.NET 4 and Visual Studio 2010 - Part 61 | .net courses

The main idea today is cookies. HTTP protocol is a stateless protocol.

0 0
Course:   Course ASP.NET 4 and Visual Studio 2010

Duration:  21 minutes

Summary: The main idea today is cookies. HTTP protocol is a stateless protocol. That means it treats every request as a separate request. It does not know to tie these requests to the same user. It is our job as developers to do that. There are some approached to remember users’ requests and one of them is cookies. A cookie is a small text file (max 4096 bytes) written to the user’s browser. In your code you can write that cookie to the browser. Then you can check if that cookie exists you can use the value to continue your logic (for example remembering user’s preferences). There are two types of cookies you can work with: session cookie and persistent cookie. As the name implies, the session cookie is only available for that session (until the user exists the browser session). Persistent cookie is available for as long as you want that time to be (2 days, 5 hours, 3 years…). But remember that users can turn cookies off on their browsers. You need to account for that. Cookies are handy when you are developing an intranet site where you have control on who your users are.

Methodology of the development of example: Good coding standard and simplified design to illustrate the key points.

Technology Used: ASP.NET and Visual Studio 2010

Keyword: ASP.NET 4, Visual Studio 2010, Request, Response, Cookie, Persistent, DateTime, Value, Expires.


Ayad Boudiab
Experience: A total of 10 years experience in developing applications using C++, Java, C#, ASP.NET, and SQL Server. In addition to 6 years experience in teaching programming courses at a local college. Degree: B.S. Computer Science Location: Atla...
Add your comment
[Fechar]

Este post é fechado - você precisa ter acesso ao post para incluir um comentário.


no comments have been posted - be the first!
Help us to improve! Give us your feedback:

Give your note to this post: 1 2 3 4 5 6 7 8 9 10
Is this post helpful? Yes No



[Close]
To have full access to this post (or download the associated files) you must have MrBool Credits.

  See the prices for this post in Mr.Bool Credits System below:

Individually – in this case the price for this post is US$ 2,00 (Buy it now)
in this case you will buy only this video by paying the full price with no discount.

Package of 10 credits - in this case the price for this post is US$ 1,00
This subscription is ideal if you want to download few videos. In this plan you will receive a discount of 50% in each video. Subscribe for this package!

Package of 50 credits – in this case the price for this post is US$ 0,33
This subscription is ideal if you want to download several videos. In this plan you will receive a discount of 83% in each video. Subscribe for this package!


> More info about MrBool Credits








mrbool.com
contact us   |   publish your post   |   buy credits

Copyright 2013 - all rights reserved to www.web-03.net