211 // |
211 // |
212 CCookieManagerServer::~CCookieManagerServer() |
212 CCookieManagerServer::~CCookieManagerServer() |
213 { |
213 { |
214 CLOG( ( EServer, 0, _L( "-> CCookieManagerServer::~CCookieManagerServer" ) ) ); |
214 CLOG( ( EServer, 0, _L( "-> CCookieManagerServer::~CCookieManagerServer" ) ) ); |
215 iServerClosing = ETrue; |
215 iServerClosing = ETrue; |
216 |
|
217 // delete iPersistentCookies; |
|
218 |
|
219 //delete iCookieFileName; |
|
220 |
|
221 //iFs.Close(); |
|
222 iStringPool.Close(); |
|
223 // delete iCookiePacker; |
|
224 if(iCookieGroupDataArray) |
216 if(iCookieGroupDataArray) |
225 { |
217 { |
226 delete iCookieGroupDataArray; |
218 delete iCookieGroupDataArray; |
227 iCookieGroupDataArray = NULL; |
219 iCookieGroupDataArray = NULL; |
228 } |
220 } |
229 delete iGroupIdArray; |
221 delete iGroupIdArray; |
230 |
222 |
231 delete iCloseTimer; |
223 delete iCloseTimer; |
232 |
224 iStringPool.Close(); |
233 CLOG( ( EServer, 0, _L( "<-CCookieManagerServer::~CCookieManagerServer") ) ); |
225 CLOG( ( EServer, 0, _L( "<-CCookieManagerServer::~CCookieManagerServer") ) ); |
234 CLOG( ( EServer, 0, _L( "*****************" ) ) ); |
226 CLOG( ( EServer, 0, _L( "*****************" ) ) ); |
235 } |
227 } |
236 |
228 |
237 // --------------------------------------------------------- |
229 // --------------------------------------------------------- |
312 // no more sessions left so we can close the server. |
304 // no more sessions left so we can close the server. |
313 // however, it is advantageous to wait a lilltle, |
305 // however, it is advantageous to wait a lilltle, |
314 // e.g. 1 minute before doing so as starting a server is expensive |
306 // e.g. 1 minute before doing so as starting a server is expensive |
315 // in many ways. |
307 // in many ways. |
316 CLOG( ( EServer, 0, _L( "Closing Server" ) ) ); |
308 CLOG( ( EServer, 0, _L( "Closing Server" ) ) ); |
317 //iPersistentCookies->RemoveNonPersistent(); |
309 iCloseTimer->After( KCookieCloseTime ); |
318 iCloseTimer->After( KCookieCloseTime ); |
|
319 //just write cookies back to the file when browser is closed, |
310 //just write cookies back to the file when browser is closed, |
320 //no need wait till cookie server is shutdown. |
311 //no need wait till cookie server is shutdown. |
321 //WriteCookiesToFile(); |
312 //WriteCookiesToFile(); |
322 } |
313 } |
323 |
314 |