change cookie - client side

This is a discussion on change cookie - client side within the Tech Board forums, part of the Community Boards category; I'm building an apache module that works with cookies and am curious in how easy (or possible) it would be ...

  1. #1
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001
    Posts
    187

    change cookie - client side

    I'm building an apache module that works with cookies and am curious in how easy (or possible) it would be for an end-user to change the expiry date/time of a cookie.

    My initial code sets the cookie to expire in a day but my stats will get skewed a bit if someone has this cookie for weeks...

  2. #2
    Sr. Software Engineer filker0's Avatar
    Join Date
    Sep 2005
    Location
    West Virginia
    Posts
    235
    There's a plug-in for Firefox that lets a user muck with the contents of cookies, or at least I think there is. Very few people bother to look inside cookies beyond finding out where they come from. It is possible for you to encode a checksum in your cookie data that is calculated on some representation of the data that you put in it, but not on the data pattern (text) in the cookie itself. This would be difficult for the user to update if they updated the expiration date in the cookie, and you could ignore data from cookies that had bad checksums.

    I hope this helps.
    Insert obnoxious but pithy remark here

  3. #3
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001
    Posts
    187
    Thanks for the reply,
    I'm thinking I could embed the number of days since epoch in the cookie's value string
    Last edited by ginoitalo; 03-09-2006 at 04:03 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. c program client server
    By steve1_rm in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-24-2008, 09:33 AM
  2. WSAAsyncSelect Socket Model. She's Not Hot.
    By Tonto in forum Networking/Device Communication
    Replies: 2
    Last Post: 03-24-2007, 08:34 AM
  3. Run time error at client side query?
    By dp_76 in forum Networking/Device Communication
    Replies: 0
    Last Post: 07-01-2005, 03:02 AM
  4. Unicode vurses Non Unicode client server application with winsock2 query?
    By dp_76 in forum Networking/Device Communication
    Replies: 0
    Last Post: 05-16-2005, 07:26 AM
  5. Replies: 2
    Last Post: 09-04-2001, 02:12 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21