QUOTE (FeedBacker @ May 14 2008, 12:38 AM)

A user logon and tracking script, which language to use?User Login And Tracking
I would like to learn a language for creating or using scripts to allow users to be able to logon to their own personal account to use my site and allow me to view the date/time of which links are clicked so I can keep track of which user joined which sponser so I can reward them for doing so. Is this possible?
Thanks in advance

-question by David Almond
Hi, David!
It's been awhile since your post here, but maybe you still track it somehow and you'll see my piece of advice.
Since you posted in the .NET forums, I'm going to give you some ASP.net suggestions. The big idea is: yes, it is possible what you have in mind, and actually it's not so hard.
1. For the user login, the easiest way to do it is by using a Login Control, like described here in the MSDN documentation:
http://msdn.microsoft.com/en-us/library/ms178329.aspxYou don't need to write any code, you just add this control from the toolbar in Visual Studio to your website's masterpage, and it will automatically take care of your users' logon, authentication, etc.
2. About seeing the date/time and what links your clients clicked, you will need a bit of code (C# in my suggestions, but you can use VB.net also). You can make all the links on your website to be at design time LinkButton controls, not simple links. LinkButtons look exactly as normal links to the end-user, but the beauty is that you can attach events to them,and make some code execute on those events.
In your example, you can use the OnClicked event. When the user clicks a link, you'll add code that sees who it is (you will find information on how to do it in the link I provided above), you can use the event arguments to see what link he clicked on, and finally you can get the date/time they clicked with DateTime.Now(). After you'll get these 3 pieces of information (all you wanted) you store them in a database, and then you can check there your users' activity.
If you need more details, or help with some part of this process, post here and I'll gladly help you.
Comment/Reply (w/o sign-up)