www.webdeveloper.com
Results 1 to 2 of 2

Thread: Sessions Logging

  1. #1
    Join Date
    May 2003
    Location
    Los Angeles, CA
    Posts
    5

    Sessions Logging

    What I am hoping to collect is info about the visitors to
    a protected section of my company's web site. We want to
    record into an Access database what pages were seen by
    our customers and how often they've viewed them, thereby
    confirming how often the content we've offered is being
    seen. From what I've been able to dig up on various web
    resource sites, I know global.asa will be used, but my
    question is about what code provides for the recordation
    of the data into the Access database? If there's an ASP
    website I've missed offering tutorials/suggestions on
    this, I will gladly direct my attention there. Thanks.

  2. #2
    Join Date
    Jan 2003
    Location
    Dundee, Scotland
    Posts
    1,367
    HI,
    you use the global.asa file to create a sessionID for the user. Then on every page had some code like this:

    Code:
    	dataDB.Execute "insert into tblPageViews (RecordID, PageVisited, WhenVisited) values (" _ 
    	& Session("RecordID") & ", 'Home Page', '" & Now() & "')"
    Hope this helps
    ----------------------------------

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles