Cookies (asp.net)

Posted on 2011-10-21
Medium Priority
Last Modified: 2012-05-12
I am about to make an estimate that how much time will it take to implement for the following functionality in asp.net

-      Counting all the cookies irrespective of browser on the computer
-      Counting company wise cookies as per browser (Chrome,IE,FF,Safari,Opera)
-      Displaying each Cookies Information for each browsers
-      Getting total Number of websites/companies tracking the PC
-      Getting total number of browser cookies

can anyone help please?

Question by:Dinesh Kumar
  • 5
  • 3

Expert Comment

ID: 37005450
I don't think you can access all cookies (from all browser) on computer through asp.net.

In asp.net, you are limited to send cookies in response, and fetch them from coming request.

Users all cookies won't be accessible to asp.net.

Author Comment

by:Dinesh Kumar
ID: 37005490
The proposed is a website  which will scan the system and come out with the results which are in the questions. So suppose I am having a Java Applet in the site and when that finished scanning the computer will provide the cookies information website wise and other details as in the questions. similar functionality, I want to implement in asp.net.

Expert Comment

ID: 37005520
I don't think asp.net would provide this functionality. You may have to use ActiveX control or some XBAP/Click once application which is again on discretion of user if he wants to run that programs on system. Its not like that you can achieve this with pure asp.net.

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

by:Dinesh Kumar
ID: 37005547
This to be provided into the web application. I saw a website which does this through java applet. if i use ActiveX control, how much time will it take?

Author Comment

by:Dinesh Kumar
ID: 37005634
Is this possible with Javascript? if yes/no why?

Assisted Solution

gery128 earned 1000 total points
ID: 37005651
I am not an expert on ActiveX, but it should take some sort of R&D and depends upon the expertise level.

through javascript you can get cookies as mentioned in below link:


But its specific to current page only. Javascript don't have access to client file system which may be required in your requirement scenario.

Author Comment

by:Dinesh Kumar
ID: 37005676
My PM told that ActiveX only works in IE.
LVL 28

Accepted Solution

strickdd earned 1000 total points
ID: 37006943
First off, a website that is able to access ALL cookies on a single browser is already a HUGE security risk. On top of that if you add in ALL browsers on the computer it is even bigger.

I can understand that there are legitimate reasons to do this (i.e. intranet monitoring), but make sure to keep this in mind.

Javascript cannot do this because it is a sandboxed toolkit and only has access to the cookies for the current website's domain. This is because of the security risk mentioned above.

ActiveX has the potential to do this, but as you mentioned, it is only for IE.

ASP.Net has no direct way to do this because all the code runs server-side except for the javascript code.

As far as the Java Applet, that is your best option. Java applets run in a snadboxed environment, but the permissions can be escalated via a request to the user. I still don't think you'll be able to get all the cookies.

If you can have an application (winforms app, console app, or windows service) that runs on the computer, you will be able to set up permissions so you can read all cookies from all the browsers.

In short, this is a BAD idea in general.

Author Closing Comment

by:Dinesh Kumar
ID: 37010226
Thank you.

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While working on Silverlight and WCF application, I faced one issue where fault exception occurred at WCF operation contract is not getting propagated to Silverlight client. So after searching net I came to know that it was behavior by default for s…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question