Time Period Abbreviations for the CGI Module's Header and Cookie Functions : Cookie « CGI « Perl






Time Period Abbreviations for the CGI Module's Header and Cookie Functions

    

Abbreviation       Definition                 Example

d                  Days                       +1d (expire 1 day from now)

h                  Hours                      +8h (expire 8 hours from now)

M                  Months                     +1M (expire 1 month from now)

m                  Minutes                    -1m (expire immediately)

now                Immediately                now (expire immediately)

s                  Seconds                    +30s (expire 30 seconds from now)

y                  Years                      +1y (expire 1 year from now)

   
    
    
    
  








Related examples in the same category

1.A Simple Cookie Example
2.A Simple Cookie Example Using the CGI Module
3.Retrieving Cookies
4.Setting Cookie Expiration Without Using the CGI Module
5.Setting Cookie Expiration Using the CGI Module
6.Sending Multiple Cookies Using CGI.pm
7.Retrieving Multiple Cookies
8.Create cookie
9.Cookies and Session Tracking
10.Session tracking in our CGI scripts
11.Read cookie value
12.Program to read cookies from the client's computer