| 256 | } |
| 257 | |
| 258 | int HttpCookie::getMaxAge(void) const |
| 259 | { |
| 260 | const char* ptr = getParam("Max-Age"); |
| 261 | if (ptr == NULL || *ptr == 0) { |
| 262 | return -1; |
| 263 | } |
| 264 | return atoi(ptr); |
| 265 | } |
| 266 | |
| 267 | const char* HttpCookie::getParam(const char* name, |
| 268 | bool case_insensitive /* = true */) const |