| 225 | } |
| 226 | |
| 227 | bool session::set_ttl(time_t ttl, bool delay) |
| 228 | { |
| 229 | if (ttl == ttl_) { |
| 230 | return true; |
| 231 | } |
| 232 | |
| 233 | // ������ӳ��ģ����������س�Ա���������ͳһ flush |
| 234 | else if (delay) { |
| 235 | ttl_ = ttl; |
| 236 | dirty_ = true; |
| 237 | return true; |
| 238 | } |
| 239 | |
| 240 | #if 0 |
| 241 | // ����� sid ��û���ں�� cache �ϴ洢��������ڶ����б�������һ�� |
| 242 | else if (!sid_saved_) { |
| 243 | ttl_ = ttl; |
| 244 | return true; |
| 245 | } |
| 246 | #endif |
| 247 | |
| 248 | // �ĺ�� cache ����Ը� sid �� ttl |
| 249 | else if (set_timeout(ttl)) { |
| 250 | ttl_ = ttl; |
| 251 | return true; |
| 252 | } else { |
| 253 | return false; |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | bool session::del_delay(const char* name) |
| 258 | { |
no outgoing calls