Monitoring Cookie Changes

Add-in Express™ Support Service
That's what is more important than anything else

Monitoring Cookie Changes
 
Mazen




Posts: 6
Joined: 2013-11-10
Hi,

Is it possible to monitor cookie/session changes across all tabs, such that if a cookie/session changed an event can be triggered?

Kind regards,
Posted 11 Nov, 2013 04:54:09 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Mazen,

There is not such event in the IE object model. Please try to use the HttpMonitor example to see what cookies are sent/received by IE.
Posted 11 Nov, 2013 09:36:44 Top
Mazen




Posts: 6
Joined: 2013-11-10
Sergey Grischenko writes:
Please try to use the HttpMonitor example to see what cookies are sent/received by IE.


Hi Sergey, and thank you for your response.

I tried first running the example but the addon will not show up (I am using IE 10), then I tried to follow the same method for capturing the cookies (and much about every request) but it didn't work either. Following are details:

  • I created an IEModule (AddinExpress.IE.ADXIEModule) that contains an IEToolbar (AddinExpress.IE.ADXIEToolbar)
  • I created the following events on the IE module that, once fired, will show a message box:
  • - OnReportProgress
  • - OnResponse


However, no matter what requests I do (even when I set cookies through login), the message box will not show up. Do you have any other suggestion?
Posted 12 Nov, 2013 00:17:24 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Mazen,

Please set the 'HandleHTTPNegotiations' property of the iemodule to true and rebuild the project.
Posted 12 Nov, 2013 06:36:25 Top
Mazen




Posts: 6
Joined: 2013-11-10
Please set the 'HandleHTTPNegotiations' property of the iemodule to true and rebuild the project.


Dear Sergey,

Thank you for keeping up. This solved the problem.

However, I need to capture cookies that are sent along with XMLHttpRequests, but I couldn't capture those requests with OnReportProgress event to begin with (I tried a bunch of other events as well). Do you know any way around it?

Kind Regards,
Posted 12 Nov, 2013 08:37:10 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Mazen,

I think that you need to create and register your own HTTP protocol handler (MIME filter). But Add-in Express doesn't provide such a feature at the moment.
Posted 12 Nov, 2013 08:50:36 Top
Mazen




Posts: 6
Joined: 2013-11-10
Sergey Grischenko writes:
But Add-in Express doesn't provide such a feature at the moment.

Dear Sergey,

Can I request this feature to be implemented? Our application cannot work unless we were able to capture XHR cookies/sessions.

Kind regards,
Posted 12 Nov, 2013 08:58:47 Top
Mazen




Posts: 6
Joined: 2013-11-10
Mazen writes:
Dear Sergey,

Can I request this feature to be implemented? Our application cannot work unless we were able to capture XHR cookies/sessions.

Kind regards,


Hi,

I wonder if implementing this feature would be feasible.

Kind Regards,
Posted 12 Nov, 2013 23:21:27 Top
Mazen




Posts: 6
Joined: 2013-11-10
Mazen writes:
Hi,

I wonder if implementing this feature would be feasible.

Kind Regards,
Posted 12 Nov, 2013 23:22:11 Top
Andrei Smolin


Add-in Express team


Posts: 14137
Joined: 2006-05-11
Hello Mazen,

This feature isn't planned yet. In any case, this will not be developed this year.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 13 Nov, 2013 02:38:07 Top