Clear IE cookies: 
Author Message
 Clear IE cookies:

Hi:
        BOOL bRet;
        bRet=InternetSetOption(0, INTERNET_OPTION_END_BROWSER_SESSION, 0, 0);
        if(!bRet)
                return;
        CString rStr,strErr;
        //GetSpeFolder function get the cookies path.
        if(GetSpeFolder(COOKIES,rStr)){
                LPTSTR lpStr=TransString(rStr);//TransString function convert    
                                                        //CString class data to LPTSTR
        //DelDir function delete the specified folder's contents.
        if(!DelDir(lpStr,GetSafeHwnd(),TRUE,strErr))
                        AfxMessageBox(strErr);
        }
        else
                AfxMessageBox(rStr);
        rStr.ReleaseBuffer();
When execute this program,produce these errors:"Debug Assertion
Failed,...Expression:_BLOCK_TYPE_IS_VALID(pHead->nBlockUse)"
Could you find it?


Sun, 20 Feb 2005 21:39:01 GMT  
 Clear IE cookies:
What line of what file is asserting?  Are the values of rStr, and lpStr what
you expect?


Quote:
> Hi:
>   BOOL bRet;
> bRet=InternetSetOption(0, INTERNET_OPTION_END_BROWSER_SESSION, 0, 0);
> if(!bRet)
> return;
> CString rStr,strErr;
>     //GetSpeFolder function get the cookies path.
> if(GetSpeFolder(COOKIES,rStr)){
> LPTSTR lpStr=TransString(rStr);//TransString function convert
>                         //CString class data to LPTSTR
> //DelDir function delete the specified folder's contents.
>     if(!DelDir(lpStr,GetSafeHwnd(),TRUE,strErr))
> AfxMessageBox(strErr);
> }
> else
> AfxMessageBox(rStr);
> rStr.ReleaseBuffer();
> When execute this program,produce these errors:"Debug Assertion
> Failed,...Expression:_BLOCK_TYPE_IS_VALID(pHead->nBlockUse)"
> Could you find it?



Mon, 21 Feb 2005 04:35:00 GMT  
 Clear IE cookies:


Quote:
> What line of what file is asserting?  Are the values of rStr, and
> lpStr what you expect?



>> Hi:
>>   BOOL bRet;
>> bRet=InternetSetOption(0, INTERNET_OPTION_END_BROWSER_SESSION, 0, 0);
>> if(!bRet)
>> return;
>> CString rStr,strErr;
>>     //GetSpeFolder function get the cookies path.
>> if(GetSpeFolder(COOKIES,rStr)){
>> LPTSTR lpStr=TransString(rStr);//TransString function convert
>>                         //CString class data to LPTSTR
>> //DelDir function delete the specified folder's contents.
>>     if(!DelDir(lpStr,GetSafeHwnd(),TRUE,strErr))
>> AfxMessageBox(strErr);
>> }
>> else
>> AfxMessageBox(rStr);
>> rStr.ReleaseBuffer();
>> When execute this program,produce these errors:"Debug Assertion
>> Failed,...Expression:_BLOCK_TYPE_IS_VALID(pHead->nBlockUse)"
>> Could you find it?

Hi,David Crow
  Thank you in advance.The values of rStr, and lpStr are ok.When execute
the DelDir function,it produce errors.If can delete the cookies folder's
contents by the SHFileOperation() after getting the cookies path?At the
begining,is it ok about the InternetSetOption function ?


Mon, 21 Feb 2005 09:35:12 GMT  
 Clear IE cookies:
Step into the DelDir() function to narrow down the problem code.


Quote:
> Hi,David Crow
>   Thank you in advance.The values of rStr, and lpStr are ok.When execute
> the DelDir function,it produce errors.If can delete the cookies folder's
> contents by the SHFileOperation() after getting the cookies path?At the
> begining,is it ok about the InternetSetOption function ?



Tue, 22 Feb 2005 02:05:18 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. How to clear IE cookies?

2. Import IE session cookies into program

3. IE MFC and the cookies

4. Clear AutoComplete history in IE through VC++

5. request cookie or response cookie?

6. Expired Page / I.E. HELP !

7. Disable I.E. AutoFill in ASP.NET app

8. Who knows ,,, Redirect IE URL as IE

9. I.E. icon ?

10. IE 4 incompatible with IE 5???

11. Browser Control - IE 3.0 vs IE 4.0

12. should I use cookie.Value =, or cookie.Values.Add() ?

 

 
Powered by phpBB® Forum Software