Wednesday, March 28, 2012
The best way to uniquely identify anonymous visitors
to an asp.net website? I'd like to create on online poll, but I want
to guard against people hitting the refresh button, scripting posts to
the web form, deleting cookies, ect
Does anyone have any ideas or know where I might find any good online
resources?
TIA,
SeanThe best you can do is approximate the number of users by sending a
persistent cookie to each client. Even this approach isn't perfect,
because people can disable cookies, and delete cookies, and multiple
users could share the same computer.
Scott
http://www.OdeToCode.com
On 26 Jul 2004 14:37:55 -0700, muser8@dotnet.itags.org.hotmail.com (muser8@dotnet.itags.org.hotmail.com)
wrote:
>What is the best way in which to uniquely identify anonymous visitors
>to an asp.net website? I'd like to create on online poll, but I want
>to guard against people hitting the refresh button, scripting posts to
>the web form, deleting cookies, ect
>Does anyone have any ideas or know where I might find any good online
>resources?
>TIA,
>Sean
If you are allowing anonymous access then there will always be a away around
what you are requesting. You will have to have a unique identifier and you
can help limit this but it will never be 100%.
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
<muser8@dotnet.itags.org.hotmail.com> wrote in message
news:9cc29557.0407261337.370bba85@dotnet.itags.org.posting.google.com...
> What is the best way in which to uniquely identify anonymous visitors
> to an asp.net website? I'd like to create on online poll, but I want
> to guard against people hitting the refresh button, scripting posts to
> the web form, deleting cookies, ect.
> Does anyone have any ideas or know where I might find any good online
> resources?
> TIA,
> Sean
The best way to uniquely identify anonymous visitors
to an asp.net website? I'd like to create on online poll, but I want
to guard against people hitting the refresh button, scripting posts to
the web form, deleting cookies, ect
Does anyone have any ideas or know where I might find any good online
resources?
TIA,
SeanThe best you can do is approximate the number of users by sending a
persistent cookie to each client. Even this approach isn't perfect,
because people can disable cookies, and delete cookies, and multiple
users could share the same computer.
--
Scott
http://www.OdeToCode.com
On 26 Jul 2004 14:37:55 -0700, muser8@dotnet.itags.org.hotmail.com (muser8@dotnet.itags.org.hotmail.com)
wrote:
>What is the best way in which to uniquely identify anonymous visitors
>to an asp.net website? I'd like to create on online poll, but I want
>to guard against people hitting the refresh button, scripting posts to
>the web form, deleting cookies, ect
>Does anyone have any ideas or know where I might find any good online
>resources?
>TIA,
>Sean
If you are allowing anonymous access then there will always be a away around
what you are requesting. You will have to have a unique identifier and you
can help limit this but it will never be 100%.
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
<muser8@dotnet.itags.org.hotmail.com> wrote in message
news:9cc29557.0407261337.370bba85@dotnet.itags.org.posting.google.c om...
> What is the best way in which to uniquely identify anonymous visitors
> to an asp.net website? I'd like to create on online poll, but I want
> to guard against people hitting the refresh button, scripting posts to
> the web form, deleting cookies, ect.
> Does anyone have any ideas or know where I might find any good online
> resources?
> TIA,
> Sean
Saturday, March 24, 2012
The easiest way to save data into a text file on server side - Help me please
Hi guys, I'm new at ASP and all I wanna know is, what is the simplest code for gathering info from my website visitors (using the FORM object) and saving it to a text file (*.TXT) on the web server? The whole procedure. I know it's lame, but is there anyone out there, that could help me with this one? Thanks guys.
Andrew
You could do something like the following. Here txtName and txtAddress are textboxes. Similarly you can add all the controls that you want to save.
The collected data is saved in the current directory on the webserver in a file called Test.txt. All subsequent saves will be appended to the same file (change the last parameter
to false to overwrite on every save)
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim s As String
s += txtName.Text + vbCrLf
s += txtAddress.Text + vbCrLf
My.Computer.FileSystem.WriteAllText(Server.MapPath("Test.txt"), s, True)
end sub