Amitabh
Amitabh

Reputation: 61167

Tracking users when they have cookie disabled?

What is the best way to track users on our Asp.net websites if they have there cookie disabled.

I heard about Flash cookies but could not find a good resource to access the flesh cookies using Asp.Net or JavaScript.

Does anyone know a better method?

Upvotes: 0

Views: 266

Answers (2)

Hans Kesting
Hans Kesting

Reputation: 39274

A Google search turned up this: http://www.nuff-respec.com/technology/cross-browser-cookies-with-flash, with a flash file that is accessed through js. I haven't tried this.

I think it's not possible to use Flash-cookies without flash.

There's also html5 local storage: http://diveintohtml5.ep.io/storage.html

Upvotes: 1

Jamie Treworgy
Jamie Treworgy

Reputation: 24334

The most straightforward (and time-honoroed) method is to attach a session code to every internal link on your web site, e.g.

http://www.mysite.aspx/page.aspx?id=xxxx-yyyy-zzzz

Since you're using asp.net, using POST for navigation is easy enough already, so the code can be buried in a hidden form field that you include as part of the page template.

But really, why worry? If someone has disabled cookies it's because they don't want their session tracked. Trying to find clever ways to violate the wishes of your users won't make them like you.

Upvotes: 1

Related Questions