Can we access session cookies from C++/VC++ code?
-
Can we access session cookies from C++/VC++ code. How to do that? I need to store data in session cookies when I open any web based client, and I need to access the cookies from VC++ code, I need help in that whether we can Do that? Please somebody can let me know how to do that if there is any solution. Thank you in advance.
-
Can we access session cookies from C++/VC++ code. How to do that? I need to store data in session cookies when I open any web based client, and I need to access the cookies from VC++ code, I need help in that whether we can Do that? Please somebody can let me know how to do that if there is any solution. Thank you in advance.
Are you wanting to do it via a BHO, or are you just wanting to open the .txt file?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
Are you wanting to do it via a BHO, or are you just wanting to open the .txt file?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
I am hosting web browser on a dialog( which is MFC dialog) and navigating to a link ( link ->which is a client to a database of articles) when I open an article in the browser which I hosted on MFC dialog I will save the article id ( somehow I will get it ) in a session cookie. Later on I need to access the session cookie from MFC code. how to do that any idea please? I am using CWebBrowser2 calss object as web browser, and useing CWebBrowser2 ::Navigate2 interface method to navigate to the specified link.
modified on Wednesday, September 16, 2009 1:01 PM
-
I am hosting web browser on a dialog( which is MFC dialog) and navigating to a link ( link ->which is a client to a database of articles) when I open an article in the browser which I hosted on MFC dialog I will save the article id ( somehow I will get it ) in a session cookie. Later on I need to access the session cookie from MFC code. how to do that any idea please? I am using CWebBrowser2 calss object as web browser, and useing CWebBrowser2 ::Navigate2 interface method to navigate to the specified link.
modified on Wednesday, September 16, 2009 1:01 PM
sarat wrote:
...I will save the article id ( somehow I will get it ) in a session cookie. Later on I need to access the session cookie from MFC code. how to do that any idea please?
If you have code for creating a cookie, why can't you access it?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
sarat wrote:
...I will save the article id ( somehow I will get it ) in a session cookie. Later on I need to access the session cookie from MFC code. how to do that any idea please?
If you have code for creating a cookie, why can't you access it?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
I create cookeies thru .aspx page and post it to local machine with another .aspx page. the code is in aspx now i need to access the cookies from MFC code
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
Thanx a lot DavidCrow, in that post , i do not understand how to create m_piRequest object before making a call "hr = m_piRequest->get_Cookies(&pDict);" i am not that familier with COM. I googled it : m_piRequest is The IRequest interface pointer ( if am not wrong) please let me know how to create m_piRequest object before start using it, do i need to do cocreate instance? please help me in this. basically.. i am hosting CWebBrowser2 derived class object on a dialog. and using Navigate funtion to navigate to any URL of a web application. I will be createing cookies thru aspx page of the webapplication.
-
Thanx a lot DavidCrow, in that post , i do not understand how to create m_piRequest object before making a call "hr = m_piRequest->get_Cookies(&pDict);" i am not that familier with COM. I googled it : m_piRequest is The IRequest interface pointer ( if am not wrong) please let me know how to create m_piRequest object before start using it, do i need to do cocreate instance? please help me in this. basically.. i am hosting CWebBrowser2 derived class object on a dialog. and using Navigate funtion to navigate to any URL of a web application. I will be createing cookies thru aspx page of the webapplication.
sarat wrote:
I googled it : m_piRequest is The IRequest interface pointer ( if am not wrong)
That is correct.
sarat wrote:
please let me know how to create m_piRequest object before start using it, do i need to do cocreate instance? please help me in this.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
sarat wrote:
I googled it : m_piRequest is The IRequest interface pointer ( if am not wrong)
That is correct.
sarat wrote:
please let me know how to create m_piRequest object before start using it, do i need to do cocreate instance? please help me in this.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
Thank you DavidCrow I am enjoing learning COM..with ur help. but the problem in here is , i donot have "OnStartPage" function and noway it gets called in my application. i have a dialog on that i am hosting a CwebBrowser2 derived class object. i have a button called insert article. when i click on insertarticle button i need to access the cookie. ( When i open any article on the browser, one file called article.aspx will create cookie and assignes article id as its value, which i need to access when i cleick on insert button ) i do not have OnStartPage () function here and cannot get IUnknown* pUnk. what is the solution for the problem.. please help me in this