| TOTAL: 8 Page: 1 of 1 |
|
COOKIES IN ASP.NET C# VERSION
For some reason we seemed to have a terrible time figuring out how to do cookies in ASP.NET. If you look at some of the sample code on the Web, I truly believe it is possible to become thoroughly confused! Cookies in ASP.NET - at least the basic kind - are no more difficult than in Classic ASP or in Client-side Javascript. Here is a sample ASPX page you can try (set the expiration days to a negative number to erase the cookie), and below appears the source for the page:

| Hits: | 150 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-13 |
Cookies 101 with ASP+
A cookie is a very important part in many websites today, they can be used for just about anything. I will be focusing on the basics of setting and retrieving a cookie is ASP+, so let’s get started.

| Hits: | 78 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-13 |
C# And Cookies
Cookies allow you to store small bits of data on the user's computer. They take up a small amount of space on the user's hard drive and are often useful for storing nonessential information, such as user preferences.

| Hits: | 72 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-13 |
ASP.NET version of "Cookie"
This new method actually uses an object to handle the cookies. It makes things much neater and while it's a little different, I think you'll quickly see how much easier it is to deal with then the old way. To keep it simple and not clutter the script up with form work, this sample plays with one fixed cookie name. If you want a version attached to a form let me know and I'll see what I can do, but this version does the cookie stuff and almost nothing else so you can get a feel for cookies by

| Hits: | 112 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-11 |
Basics of Cookies in ASP.NET
Cookies provide a useful means in Web applications to store user-specific information. For example, when a user visits your site, you can use cookies to store user preferences or other information. When the user visits your Web site another time, the application can retrieve the information it stored earlier. This article provides an overview of working with cookies in ASP.NET applications. I will show you the mechanics of working with cookies in ASP.NET, such as writing them and then reading

| Hits: | 59 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-11 |
Advanced Cookie Techniques with ASP
There are many articles on the web that explain how to use cookies in your webpage’s. Most of these articles only cover the very basics and don’t give any examples that are practical if you are working with a database. I have had some very unique requests from clients for which I had to use both session state cookies and client side cookies. I know a lot of people frown on the use of either, but there are cases when you have to use them. I will discuss a few situations in which you would use

| Hits: | 107 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-11 |
Setting and displaying cookies
The HttpCookie and HttpCookieCollection classes allow you to access and edit cookies which have the following properties: Domain - gets or sets the name of the domain to associate the cookie with. Expires - gets or sets expiration date. The value is a standard system date/time. HasKeys - tells whether the cookie has subkeys or not. This property cannot be set. Item - a shortcut to HttpCookieValues[key]. Name - gets or sets the name of the cookie. Path - gets or sets the cookie's virtual

| Hits: | 54 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-11 |
Encrypting Cookie Data with ASP.NET
My last article, Tracking Visitors with ASP.NET, showed how to use cookies to keep track of site visitors across sessions. I also discussed privacy issues concerning the use of cookie data, particularly if you are storing sensitive information about your visitors/users. It is always a good idea to publish privacy statements to inform your users about how their data is being used and stored on your Web site. Cookies can provide a real convenience to both visitors and programmers of a Web-based

| Hits: | 201 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-11 |