Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Advantage and disadvantage of form and cookies
Message
General information
Forum:
Internet
Category:
HTML
Miscellaneous
Thread ID:
00088333
Message ID:
00090342
Views:
33
>Please explain briefly how the HTML forms and Netscape cookies can be used to store state information.

You should never use Cookies as a mechanism to store data.
instead use them (pardon the pun) as Cookies - an ID that
references something like a record in a database. As such
you're not really storing anything valuable on the client.

Fear of cookies is entirely media hype - they serve a useful
function for those sites that have to track users as they move
through it.

You can use other mechansisms such as URL 'parameters' or hidden
form variables, but it's very tedious to make sure that *every*
request on your site passes forward this cookie. If you have static
pages this may not work - you'll need some dynamic mechanism to
make this work correctly.

>Secondly, What are the advantages and disadvantages of the two methods.

Cookies are easy to use and can be transparent to the user.

Using form vars or URL Ids is very tedious, but works with any browser
and there's no way for users to refuse this type of Id. IOW, they
have no choice which is as it should be for an application such as
a Web store.

+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform