Print Page | Close Window

How much user information can be captured

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=17293
Printed Date: 29 March 2026 at 1:25pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: How much user information can be captured
Posted By: sccs
Subject: How much user information can be captured
Date Posted: 18 November 2005 at 7:40am
I am using ASP for our school website and would like to capture as much hidden user information on the forms submitted from our site. I have set the form to capture the IP address but what other information can I capture. I would like to capture the students Username if possible. We get loads of crap posted from students. It is now set up to ban any submissions from our school IP address but it would be nice to capture the students username if they submit anything.
Thanks Wink



Replies:
Posted By: pilot99
Date Posted: 20 November 2005 at 11:10am
well how is their username stored through a field or a database or a network?

-------------
http://www.globaltornado.com">


Posted By: dpyers
Date Posted: 20 November 2005 at 1:03pm
If they have to be logged on to the same network as the web server in order to access it, you may want to check out the REMOTE_USER server variable.

Here's an asp script I use to check app and server variables, cookies, etc.

Quote <%
'
' List Server, Application and Session Variables
'

On Error Resume Next
dim strName
dim strSubKey
Dim item, itemloop

response.write "SERVER Variables Count = " & Request.ServerVariables.Count & "<br/><br/>"
For Each strName In Request.ServerVariables
    If strname ="ALL_HTTP" OR strname ="ALL_RAW" then
        response.write "Server Variable " & strName &" = <br/>" & Request.ServerVariables(strName) & "<br/><br/>"
    Else
        response.write "Server Variable " & strName &" =  " & Request.ServerVariables(strName) & "<br/>"
    End If
Next
response.write "<br/><br/>"


%>
SESSION Variables Count = <% =Session.Contents.Count %> Found<br/><br/>
<%
For Each item in Session.Contents
  If IsArray(Session(item)) then
    For itemloop = LBound(Session(item)) to UBound(Session(item))
%>
<%=item%>  <%=itemloop%> <% =Session(item)(itemloop) %><br/>
<%
    Next
  Else
%>
<% =item %> <% =Session.Contents(item) %><br/>
<%
  End If
Next
%>

<hr>

APPLICATION Variables Count = <% =Application.Contents.Count %> Found<br/><br/>
<%
For Each item in Application.Contents
  If IsArray(Application(item)) then
    For itemloop = LBound(Application(item)) to UBound(Application(item))
%>
<% =item %>   <% =itemloop %> <% =Application(item)(itemloop) %><br/>
<%
    Next
  Else
%>
<% =item %> <% =Application.Contents(item) %><br/>
<%
  End If
Next
response.write "<br/><br/><hr />"


response.write "MISCELLANEOUS Server Info<br/><br/>"

Response.Write "WebRoot Server Mappath = " & Server.MapPath("\") & "<br/>"

dim objAdoVer
Set objAdoVer = Server.CreateObject("adodb.connection")
response.write "ADOVersion = " & objAdoVer.Version
Set objAdoVer = Nothing
%>



-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: sccs
Date Posted: 21 November 2005 at 4:41am
The students log on to the school network but the website is hosted outside. Would this be a problem?


Posted By: dpyers
Date Posted: 21 November 2005 at 8:03pm
Only in the sense that their network credentials probably wouldn't be available to you.

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: Scott07
Date Posted: 25 November 2005 at 3:35pm
It would make sence surley to make them need to have a seperate login to access any part of the site, in which case you dont allow people to register and you give each student their own login, that way it would be very easy to see whos done what.

-------------
http://www.worldsofwar.co.uk - Worlds of War II



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net