I am building an ASP application, in this application, one of the functions is that I have to know exactly how long a user has used a certain page of the application. so I need a way to long the time a user enters a page and when he leaves again.
when the user closes the browser, no time for leaving isrecorded.Is there a way to run a web service that can read cookies of all the users and write them to a database? Or am I looking too far for the solution.I'd like a clean solution, not with popups, or opening other windows in order to run extra asp code.
I using ASP Windows 2003, i need in my web site, block files to download. if a user is logged, when download a file the direction of file save in URL, example:
http://mysite/files/test.xls
and any user get this file written this direction in URL, i like to block file or folder if the user is not logged.
im after adding a hit counter to my front page but having the details of how many visits the site has had being displayed in my admin section. any assitance on how i go about doing this?
I know ASP isn't the best way to do this, but is it possible?
I've written an application in ASP that manipulates an MS SQL database. We'd like to have our application automatically backup the database at specific times. We'd also like to generate an email report once a day on the statics of our database.
Is this possible with ASP? How else could it be done, considering our application is all HTML/ASP?
I have a new feature called What's New i'm implementing. Whenever i add a new feature to my site, i am goign to write a little blurb about it.
On my main page, i have a javascript that will appear if there are any WhatsNew to show. However, i only want it to appear at least until the person has visited my WhatsNew page. Then, it does not need to appear again until i add another feature.
So, i have a Publish date field in my DB for weach feature and i was going to do this.
On the main page, check to see if Cookie exists, if not, display JS. When user goes to WhatsNew page, i update the cookie with the date.
My problem is that if my last feature was published say 12/02/2005 and todays date is 12/05/2005, the JS will appear. So my theory is flawed. I need to JS to only appear when the user has visited that page, since the last feature was added.
I need to log how many times one spesific file is downloaded from my website. First I thought this could be done simply by routing via a script that count number of downloads, and then redirect to the spesific file. But this soultion will not work when a user right click on the file/link and choose "save target as...". How can I solute this?
I'm trying to make a logout link to where once someone logs out, not only will they be sent to another page, but they will not be able to go back into their account by pressing the back button, but by logging back in.
how would the site know that that specific user has logged in?i know that once the user registers, the username and the password gets stored in a database and once the user logs in, the password and the usrname gets searched against the password and the username in the database.what if i want the users details to be outputed such as address and name once they log in?
i would like to automitically log when a user signs in, presumably using a seperate Access database. Can anyone point to to a simple way of accomplishing this?
I would like to log the IP Address of users browsing my page. Hoewever, using the "REMOTE_USER" from the Request.Servervariables only logs the proxy that all users who access the page willl have to through.
Is there any way how I can log the actual IP address of the user? I thought of Cookies or something like that, but i really do not have any clue. Or tell me if its not possible so I can stop working on it.
I'm developing an application that uses a custom 404 page to deliver all of my site's content. However, doing things this way renders IIS's regular log files pretty much useless.
Are there any established "best practices" for creating your own logging system? I know that others use this technique and I'm hoping someone has some ideas they can pass along. For example, do you log every single page request or do you just log totals per day, week, or month? How do you deal with the increasing volumes of data? Do you collect referrer data, etc.?
I've got a number of ASP scripts updating a particular SQL Server table. However, this table is being updated incorrectly by one of the 10 scripts. Is there a way to log all updates so I can troubleshoot the problem?
I have experienced some ASP errors in my web application and I'm unable to reproduce those errors because IIS is configured in a way that does not send any debugging messages to the user (and I cannot change it). Only standard string "An error occured on the web server when processing the url..." is sent.
So Is there any way to log such situations to the eventlog, a file, database or any other storage? OR Is there any way to allow me to send only piece on debugging information to the user. In other words: I'd like to send error code that would be understandable only by me?
I have a page where a user enters his or her login details after registering. After clicking login it takes them through an asp page which verifies that they are a valid user. However I have come across a problem Code:
I am amazed at how much help I have had in creating my first asp based website from this forum. There are obviously a significant number of real experts who are happy to take the time to help us novices. My site which now does what it aims to would not be working without this assistance and I am extremely grateful. Code:
Is it possible to insert or grab an existing message ID (from the header etc), log it into my DB, than once the read receipt is sent from the clients machine, pull it off my pop server, parse it and than log that it was read?
I have an asp application that allows users to access certain documents based on their ID and security level. This works fine, but I want to be able to log access attempts so that any potential abuser can be given proper warnings, etc. Basically, if I'm Attorney A then I should be able to access info on Case X, but Attorney B should not be able to, and any of his attempts to access Case X should be logged somehow.
I found the following script online that should capture the IP address of the offending machine, but when I test it I only get errors: Code:
On my site when people log in it changes a field in my database from 0 to 1 the website reads in all users marked as 1 as online.
When the users log off it marks them back to 0 and they are marked as offline unfortunately most people never log off. Whats the easiest way to log them off automatically? I have included some of my code below: This shows the members online: Code:
this is a continuation of my little login page I am setting up. the login pages authenticates the user using Active Directory. I also have a Database locally in MSSQL that has the users ref number (primary key, incrementing) first name, last name, and user id (same user id as ldap/AD etc) what I want to do is when the user logs in the page will call the Database and grab the full name as well as the ref number. Later in the page if the user submits a form to add data to another database I want it to populate a column in a table using the ref number. that should be rather easy once I actually have that ref number.so how would I tell the page to go to my database and grab his ref number (as well as his name to be able to display Welcome first Lastname instead of userid?
I will be traveling and I will need to show someone a secure folder in an IIS website and I will be on a public computer. When we are done, I will need to be able to log off so no one else using that computer will find their way into that part of the website. The security is Windows authentitication using Clear Text.
Can ASP log me off. If so I will need to code this before I leave. Can anyone point me to where I can get some examples of code to do this ?
What is the easiest way to set up an area on my site where I can allow people to register and login to view information? I know this shouldn't be too hard, but I've never had to mess with it before. I have a mySQL database at my disposal.
I have a application online using ASP in which users log in and log out. However, a lot of users simply close the window, bypassing my log-out script. I have tried using the Javascript onUnload function with success, but refreshing the screen also triggers this at the wrong time
I have a web app that doesn't utilize a specific logout screen (even if it existed, the clients would probably just "x" out of the app anyway).
I would like to track users' sessions, and I can insert into a user_log table as part of the login process, but how do I capture when a user ends their session? Can I update a sql table somehow in a global.asa file - using "onSessionEnd"?
I have login page that fails the login on the validate page and gives me the Type mismatch: 'CDbl' error.What I find funny is that I didn't notice that was happening until I assigned one User a longer password (xxxxxxxxx2004) but if I login in with password for another user and they have been using this (xxxxxx2004) then everything is fine.
I can't see the code to be the problem or can it. Password field is a varchar (200).
Would somebody have a suggestion,because earlier in the day I was able to create a smaller lenght wise password for this case and it worked if I do that now it fails as if I have incorrect userName or password.
When I had just setup my web site with IIS 5.0 the error log contained the 3 things I needed for my site stats page.
The page that had that not been found (i.e. site.com/nofile.html), the error number (404) and the referrer (where the person came from to get to the bad page); Now when I try to use my custom 404 page it only logs the error number. How can I setup my page to log the referrer and bad file page?
Im trying to create an application that when sent an email, retrieves the email, and uses its content to create an MS Outlook/Exchange task request.
I have everything else in place, but when I try to connect to CDO's MAPI interface, I get [Collaboration Data Objects - [MAPI_E_LOGON_FAILED(80040111)]] error messages. I've tried numerous examples from books and the internet to no avail.
Could anyone shed some light as to why this is so? I've also exhaustively searched the archives on this site for examples and used some of them but I keep getting the same errors. Code:
I want to make a log file in which only a date and time are written, when a certain page is visited.
Most scripts and tutorials explain only about how to read a file, and how to write a file.. not on how to write a line at the end of a file(or beginning). I tried the following, but this does not work: Code:
I have written an ASP.NET 2.0 application that uses Active Directory or ADAM to manage account users - the site has a page that allows people to create an account (much like any site). The page populates the AD with all the information and the user account but I am unable to enable the account. Microsoft has information on how to do that here --> http://msdn.microsoft.com/library/d...ting_a_user.asp (the sample is for Visual Basic) - and I am unable to complete the bottom portion of the script. Can some one point me in the right direction - or can you tell me how I can add a snippet of VBscript code to an ASP.NET page.
I am using the Active DS Type library - not sure why there are multiple ones (System.DirectoryServices) but it is rather confusing - I seem to accomplish one thing with one and another with the other (they did have trouble co-existing however). Anyway my script works very well but I am not able to access the properties required to enable the account.
Here is a simple version (no error checking) of the code.....
how to go about setting up an asp script or flash action script to take the input from a user of his/her username and password then send an email to the user with the information. I am able to do all of this but the problem is that the users pc is the one sending the email. I want the server to send the email instead.