Server Administration
  Home arrow Server Administration arrow Page 5 - HTTP State Management with Cookies
Codewalker Forums 
  Tutorials  
Database Articles  
Miscellaneous  
Navigation Usability  
PEAR Articles  
Programming Basics  
Server Administration  
XML Tutorials  
  Reviews  
Database Book Reviews  
Linux Book Reviews  
Miscellaneous Reviews  
PHP Book Reviews  
PHP Software Reviews  
Server Admin Reviews  
SQL Tool Reviews  
  Code Gallery  
Content Management Code  
Contest Code  
Counters Code  
Database Code  
Date Time Code  
Discussion Board Code  
Email Code  
File Manipulation Code  
GUI Code  
Link Farm Code  
Miscellaneous Code  
Search Code  
Site Navigation Code  
User Management Code  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Download TestComplete 
Forums Sitemap 
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
SERVER ADMINISTRATION

HTTP State Management with Cookies
By: Bruce Coker
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2008-08-27

    Table of Contents:
  • HTTP State Management with Cookies
  • Cookie structure
  • Implementation
  • Cookies and PHP
  • Web Server Cookie Support

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    HTTP State Management with Cookies - Web Server Cookie Support


    (Page 5 of 5 )

    Apache, the major web server, provides transparent support for basic cookie functionality. With appropriate configuration and management, it has the capability to go beyond this, providing more sophisticated functionality that takes greater advantage of the power of cookies to provide detailed and useful information.

    In order to work with cookies, Apache must be correctly configured. This is done by loading the mod_usertrack module. Apache's configuration file, httpd.conf, contains the relevant code to do this, but the appropriate lines may need to be uncommented. The lines to look for are:

    LoadModuleusertrack_module modules/mod_usertrack.so


    AddModulemod_usertrack.c


    Once cookie tracking has been enabled, further configuration is necessary to specify the cookie name, format, duration, and whether cookie tracking is required. A log file can also be specified in httpd.conf where cookie tracking data will be stored. Now each time a client request is made, corresponding log entries will enable the retrieval of information such as:

    • Frequency and duration of visits by specific clients.

    • User activity, such as clicks, pages and links visited.

    • User time spent on specific pages.

    • Collective user activity over particular time periods. For example, on what days and times was certain content most popular

    • Relative popularity of content: which pages were visited most often and for the longest time periods.

    It is also easy to identify behavior that diverges significantly from the norm, which can be instructive in itself.

    System administrators should also be aware of the possible security implications of cookies, and how to set up Apache to guard against possible intrusions. This can be a relatively complex process, which is the subject of another article.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

    SERVER ADMINISTRATION ARTICLES

    - Processes in the UNIX Shell
    - Migrating from Windows to Wine
    - Wine: Not Another Emulator
    - Preventive Measures to Block SSH Attacks
    - Monitoring Temperatures with Cacti
    - Cacti: RRDTool-based Graphing Solution
    - Network Magic 5.0 Review
    - Netfilter and Iptables Overview
    - Installing and Configuring Squid
    - Clickfree PC Backup Systems Compared
    - Squid, the Caching Proxy
    - Regular Expressions in the Unix Shell
    - Source Code Version Control Solutions
    - OTRS: Open Source Ticket Request System
    - Clonezilla: Free Mass Disk-Cloning Utility





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek