IntroductionIntroduction
  Publishing web pagesPublishing web pages
  RXMLRXML
  Information tagsInformation tags
  String tagsString tags
  Variable tagsVariable tags
  URL tagsURL tags
    <apre>apre<apre>apre
    <aconf>aconf<aconf>aconf
    <set_cookie>set_cookie<set_cookie>set_cookie
    <remove_cookie>remove_cookie<remove_cookie>remove_cookie
    <auth-required>auth-required<auth-required>auth-required
    <expire_time>expire_time<expire_time>expire_time
    <header>header<header>header
    <redirect>redirect<redirect>redirect
    <return>return<return>return
    <killframe>killframe<killframe>killframe
  If tagsIf tags
  Graphics tagsGraphics tags
  Database tagsDatabase tags
  LDAPLDAP
  Programming tagsProgramming tags
  SSI tagsSSI tags
  Image mapsImage maps
  IntraSeekIntraSeek
  LogViewLogView
  TemplatesTemplates
  NavigationNavigation
  SiteBuilder tagsSiteBuilder tags
  Supports systemSupports system
  SecuritySecurity
  AppendixAppendix
 
<set_cookie> </> Main RXML parser

 

Sets a cookie that will be stored by the user's browser. This is a simple and effective way of storing data that is local to the user. The cookie will be persistent, the next time the user visits the site, she will bring the cookie with her.

name=string
The name of the cookie.

value=string
The value the cookie will be set to.

persistent
Keep the cookie for two years.

hours=number
Add this number of hours to the time the cookie is kept.

minutes=number
Add this number of minutes to the time the cookie is kept.

seconds=number
Add this number of seconds to the time the cookie is kept.

days=number
Add this number of days to the time the cookie is kept.

weeks=number
Add this number of weeks to the time the cookie is kept.

months=number
Add this number of months to the time the cookie is kept.

years=number
Add this number of years to the time the cookie is kept.

It is not possible to set the date beyond year 2038. By default the cookie will be kept until the year 2038.

Note that the change of a cookie will not take effect until the next page load. Therefore, a reload will be needed to see the effect of the example.

 

Attributes

name=string
The name of the cookie.

value=string
The value the cookie will be set to.

persistent
Keep the cookie for two years.

hours=number
Add this number of hours to the time the cookie is kept.

minutes=number
Add this number of minutes to the time the cookie is kept.

seconds=number
Add this number of seconds to the time the cookie is kept.

days=number
Add this number of days to the time the cookie is kept.

weeks=number
Add this number of weeks to the time the cookie is kept.

months=number
Add this number of months to the time the cookie is kept.

years=number
Add this number of years to the time the cookie is kept.

It is not possible to set the date beyond year 2038. By default the cookie will be kept until the year 2038.

Note that the change of a cookie will not take effect until the next page load. Therefore, a reload will be needed to see the effect of the example.


Set the cookie

Remove the cookie

"=> >


Set the cookie
Remove the cookie

 

Example


Set the cookie

Remove the cookie

"=> >


Set the cookie
Remove the cookie