|
Traffic-Meta Tags - Overview2
|
Set-Cookie
This is one method of setting a "cookie" in the user’s Web browser.
If you use an expiration date, the cookie is considered permanent and will
be saved to disk (until it expires), otherwise it will be considered valid
only for the current session and will be erased upon closing the Web
browser.
<META HTTP-EQUIV="Set-Cookie" CONTENT="cookievalue=xxx;expires=Wednesday,
21-Oct-98 16:14:21 GMT; path=/">
When you write Common Gateway Interface (CGI) programs, you can override all
or part of the HTTP header that is normally returned by the server. This
allows you to directly interact with the Web browser and provide the
information that is needed to process a given document or document part. To
better understand what information can be contained in HTTP headers, check
out
this article from the W3C, which provides a
comprehensive listing of the headers currently defined in HTTP.
Additionally, some browsers also implement proprietary headers, such as the
Refresh: (used commonly for client pull) and Set-Cookie: client-side
directives used by Netscape Navigator and Microsoft Internet Explorer v2.0
and above.
Implementing HTTP Cookies
Cookies are valid only on the server
and virtual directory they were created ... The key
thing is the AddHeader method which adds the Set-Cookie
string to ...
|
*** HTML document here:
Response.Write('<HTML>Hidi ho</HTML>')
This creates the header described above. There are actually several ways
that you can write out the header created with the wwHTTPHeader object
including using it's GetOutput() method or directly passing a Response
object to the wwHTTPHeader object's Init method. See the
wwHTTPHeader class docs for more details. The key thing is the AddHeader
method which adds the Set-Cookie string to the browser. Not that you can
create multiple cookies by making several calls to Addheader. It's best to
not create more than one cookie per site - use data stored in tables about
the user to retrieve and store any additional data. In short, minimize the
data stored in cookies to avoid user apprehension.
The Set-Cookie command instructs the browser to create the client side
cookie. A Cookie can contain path information (in this case /wconnect) and
expiration information which in this case is omitted. If the expiration is
in the future the cookie is persisted to disk and can persist past a browser
shut down. If like above, no expiration is provided the Cookie is considered
session specific and goes away when the browser shuts down.
<META http-equiv set-cookie>
Sets the name and value for a persistent cookie.
| <meta
http-equiv="Set-Cookie" content="value=n;expires=date; path=url"> |
| |
Value is the name of the cookie and n is the value
to be set into the cookie. Date is the date and time on which the
cookie will be deleted from the users computer.
If you do not include the expiration date and time, the cookie is
considered a session cookie and will be deleted when the user exits
the browser. |
<META HTTP-EQUIV="Set-Cookie"
CONTENT="feedme=1;expires=Wednesday, 08-Aug
|
| Meta tag Set-Cookie
· Meta tags Effects · Where I Place my Meta tag ?
Using a Robots.txt ... Search engines and directories
we recommend: ... |
The Smart
-
Useful Meta tags
|
|
 |
 |
 |
 |
 |
 |
| |
<--Navigation |
|
| |
| |
Meta tag Set-Cookie |
|
| |
Metatag Set-Cookie
<meta http-equiv="set-cookie"
content="cookievalue=xxx;expires=friday, 31-dec-99 23:59:59 gmt;
path=/;">
Here you can set a cookie with your metatag.
Importancy:Medium |
|
Meta Tag Guide - Web Marketing Tools Seo Utility
| At the beginning of technology research,
meta tag maybe was the only information ... <Meta
HTTP-EQUIV="Set-Cookie" Content="cookievalue=xxx; expires=Sunday
... |
Indicate at
Browser the page expiration date.
-
<Meta
HTTP-EQUIV="Set-Cookie" Content="cookievalue=xxx; expires=Sunday,31-jan-04
21:30:00 GMT; path=/">
HTML Tag Reference
| The META tag specifies
information about the document or creates an HTTP ... For
more information about cookies in general and the set-cookie
value, ... |
Setting the Cookie
Place the following code in the <HEAD> tags. This will set a cookie for the
current domain and directory.
You can then use this cookie on subsequent hits to check to see if the
browser had cookies enabled.
<META HTTP-EQUIV="Set-Cookie" CONTENT="cookies=true">
If you have mod_headers installed on your server then the following htaccess
code may be a better solution.
Header set Set-Cookie "cookies=true"

|