author | Michael Krelin <hacker@klever.net> | 2010-07-11 12:18:29 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2010-07-11 12:18:29 (UTC) |
commit | f2a426f8b215c396f2430a98b2929668398f3a51 (patch) (unidiff) | |
tree | abc8795c9480429e0ca381ea49ff4bb04aafee12 /include | |
parent | 82ebada6676dcea2d08e14b81365da3ca30c3dd0 (diff) | |
download | kingate-f2a426f8b215c396f2430a98b2929668398f3a51.zip kingate-f2a426f8b215c396f2430a98b2929668398f3a51.tar.gz kingate-f2a426f8b215c396f2430a98b2929668398f3a51.tar.bz2 |
cookie: time-based set_expires variants
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | include/kingate/cookies.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/kingate/cookies.h b/include/kingate/cookies.h index a1e813c..cba5aff 100644 --- a/include/kingate/cookies.h +++ b/include/kingate/cookies.h | |||
@@ -93,12 +93,14 @@ namespace kingate { | |||
93 | * @param e expiration time. | 93 | * @param e expiration time. |
94 | * @see get_expires() | 94 | * @see get_expires() |
95 | * @see has_expires() | 95 | * @see has_expires() |
96 | * @see unset_expires() | 96 | * @see unset_expires() |
97 | */ | 97 | */ |
98 | void set_expires(const string& e); | 98 | void set_expires(const string& e); |
99 | void set_expires_time(time_t etime); | ||
100 | void set_expires_in(time_t esecs); | ||
99 | 101 | ||
100 | /** | 102 | /** |
101 | * get cookie parameter. | 103 | * get cookie parameter. |
102 | * @param p parameter name. | 104 | * @param p parameter name. |
103 | * @return parameter value. | 105 | * @return parameter value. |
104 | * @see _set_string() | 106 | * @see _set_string() |