question about sending cookie to client computer

Eric (5)

Usenet Archive
Joined
Oct 20, 2008
Messages
32
Reaction score
0
Hi,

I posted this before but still unsolved ...

I organise surveys on internet. So i send a cookie to the clientcomputer as check and avoiding a second attempt on the same survey. I know this is not 100% sure (one can delete the cookie or disable javascript). The code is here below and works:

Protected Sub submit_Click(ByVal sender As Object, ByVal e As System.EventArgs)

If Not Request.Cookies("enq") Is Nothing Then Dim enq As String enq = Server.HtmlEncode(Request.Cookies("enq").Value) Page.ClientScript.RegisterClientScriptBlock(Me.GetType, "myscript", _ " alert(already filled.');" & _ " window.location.href='http://xye.sd.sd/';", True) Else Response.Cookies("enq").Value = "1" End If ....

I can see the cookie in C:\Documents and Settings\myaccount\Local Settings\Temporary Internet Files

But i visited recently a website also with a survey. I filled it, then made the whole Temporary Internet Files directory empty to be sure, i closed the browser and then i went back to the same site, i tried to fill the survey a second time, but i got the message "you have already ..." .

I even started Firefox on the same client computer and there too i couldn't fill the survey. And i also disconnected my internet connection and reconnected (with a new IP) but still same message.

My conclusion is that there must be another cookie placed in another location.

Can someone tell me what i can do more than my code ( can i redirected another cookie in another place?) or does it exist another way to prevent the second attempt?

Thanks

Eric
 

Mark Rae MVP

Usenet Archive
Joined
Jul 3, 2007
Messages
4,107
Reaction score
0
"Eric" wrote:

I posted this before but still unsolved ...

This has already been answered...

I know this is not 100% sure (one can delete the cookie or disable javascript).

Or simply not accept cookies...

My conclusion is that there must be another cookie placed in another location.

All they've done is capture your IP address - no more secure than cookies...
 

Ben (56)

Usenet Archive
Joined
Nov 10, 2008
Messages
5
Reaction score
0
Hi,

did you read this in this message?
"And i also disconnected my internet connection and
reconnected (with a new IP from my provider) but still same message"

that's why this is not sovled for me ...
Thanks
 

Mark Rae MVP

Usenet Archive
Joined
Jul 3, 2007
Messages
4,107
Reaction score
0
"Ben" wrote:

[please don't top-post]

> This has already been answered...
>
> All they've done is capture your IP address - no more secure than
> cookies...

Did you read this in this message?
"And i also disconnected my internet connection and
reconnected (with a new IP from my provider) but still same message"

Yes I did...

That's why this is not solved for me ...

I'm guessing that your ISP assigns IP addresses from a DHCP pool, and I think you'll find that someone else had previously taken the survey using the dynamic IP address that you were assigned...
 

Mark Rae MVP

Usenet Archive
Joined
Jul 3, 2007
Messages
4,107
Reaction score
0
"Mark Rae [MVP]" wrote:

I'm guessing that your ISP assigns IP addresses from a DHCP pool, and I think you'll find that someone else had previously taken the survey using the dynamic IP address that you were assigned...

Either that, or you didn't actually clear out all of the cookies (including cross-browser cookies) on your machine:
http://www.ts0.com/crosscookie/example.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,049
Messages
3,104,246
Members
248,133
Latest member
DujonT

Latest Threads

Top