SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2011
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    cookie for remembering homepage image or not?

    i've got a site where i want to randomize the branding image on the home page. not each time the user visits, but once per day

    at the moment i'm thinking of using jquery to store a cookie when the user visits, which will last until midnight. then, if the user visits again that same day, just grab the image from the cache instead of sending them another random one

    problem is, i've just heard of some strange EU rule on cookies, meaning you have to tell the user when you're using them. someone here said you don't have to tell the user / ask for permission / tick the popup box saying "can i use cookies" / etc IF the cookie is essential for site operation. but this is just to enable the caching of a simple image, albeit one that, from the site owners point of view, will massively cut down on bandwidth by not sending the users new images every five minutes

    is it still ok to use cookies in this case? & if not, is there another way around this?

    (i was thinking of maybe embedding a php script that automatically finds out which image should be shown on that day - & if that image is already in the cache just use that)

  2. #2
    Life is not a malfunction gold trophysilver trophybronze trophy
    TechnoBear's Avatar
    Join Date
    Jun 2011
    Location
    Argyll, Scotland
    Posts
    6,423
    Mentioned
    274 Post(s)
    Tagged
    5 Thread(s)
    There was a discussion about this issue recently, which you might find helpful, especially this link, provided by @ULTiMATE : http://www.international-chamber.co....okie_guide.pdf

  3. #3
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    In hindsight, no one is going to care your site is using a cookie for this. The EU Cookie law is a miserable joke with no enforceability. So go right ahead.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  4. #4
    SitePoint Enthusiast
    Join Date
    Nov 2011
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nah, the EU cookie law has me a bit spooked. it might be a dumb law but if bureaucrats are gonna interfere i wanna be out of it in case i'm forced to make changes later. i'll just gonna give the user a different image on each day of the month instead

    cheers anyway everyone


Bookmarks

Posting Permissions

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