Help with Cookies
I have the box already in place what I need now is a script that if the viewer clicks Yes and accepts then the box will hide and stay hidden until the user deletes the cookies from their browser.
I hope this makes sense.
What do the cookies do?
And if they don't accept cookies, how do you know they choose to
a cookie to know that they choose not to accept them.
What about PHP SESSION? Is that acceptable to use?
... and what is an EU law?
And as far as I know ... there is nothing dangerous with cookies.
Cookies add effective, positive features to a website/browser experience.
The same thing for AJAX, JQuery and SESSIONS.
I wonder what they'll say when the internet begins controlling physical things:
Coming sometime this month ... an interesting, cheap method to connect physical
things with the internet and websites. This will use a "cloud". But it's basically
I/O electronics interfaced to the internet for less than $50.
The FlyPort has existed for some time now. Not quite as easy to set-up as the
new Imp will be, but people are using the internet (smart phones, iPad, iPhone, etc)
to control things all over the world. This is currently about $85 for a development kit.
Can you imagine the implications of this when used maliciously? Like an IED?
We (the world) will be walking around with handheld devices for a physically
controlled environment. Let's see what the EU law says about that.
We're talking about making REAL cookies, not just browser cookies.
Cheers for the replies guys. :thumbsup:
Yeah the EU (European Union) have said that we have to ask the viewers permission to store cookies, they have not said exactly what we have to do but some people have an opt out of cookies but explain that it may effect their visit to the site OR warn them that you are using cookies and do they accept, you also have to include what your cookies do (having this on a terms & conditions or info page is not acceptable.
Back to my original question though, Im helping out with a friends site and it needs to have this warning on there. I have created a css popup that appears when the page is opened with the relative info but I need it that if the viewer agrees by clicking YES (text link) that it will remember this and not show on any other page or on their next visit unless they delete their cookies.
The link to the sit is http://www.hudsonmotorcompany.co.uk You will see the box at the top, if you click YES it will disappear but if you refresh it will reappear (don't want this) and if you click NO it'll bring another warning up and if they press CONTINUE it will mean they have agreed and do the same as YES.
PS - I have only attached to index page at the moment until I get this problem sorted so it at least has the warning there.
You'll have to use PHP SESSION to remember it for the existing browser session.
But can you use PHP SESSION?
SESSION is stored on the server, but a temporary ID is stored on the client's PC.
So essentially, SESSION does the same thing as a cookie except it is removed when the
browser closes or the user "logs-off" (closes the session). A regular cookie can also
have that same feature ... dying when the browser closes.
$_COOKIE and $_SESSION both store something on the user's PC.
So my answer to you is no ... you cannot do what you wish to do.
... and what about pop-ups? what if those are suppressed?
Now, this might sound harmless to some people but there are increasing efforts to use just that data for police or even tax investigation (no kidding, there has just recently been a highly criticized announcement from a German credit agency that was researching the possibilities of using information from social networks to help in determining the personal credit rating). They know almost everything about you exactly with the help of cookies.
The point of that directive is that websites are generally forbidden to store cookies in the user’s browser that are unrelated to the actions/intentions the user takes/has, unless the user actively opts in. Here is the relevant paragraph about that from an interesting read about that law as passed in the UK:
That's going to be a tough one to enforce.
It's a judgement call on what is considered necessary.
The site in question can use php, it was built using alot of php. I have only started to use php through helping this guy with his site so i dont understand the ins and outs of it.
I know this can be done as many sites already have it i'm just not sure how to implement it to the box I have created.
http://www.hudsonmotorcompany.co.uk (site in question)
http://www.bbc.co.uk (site that has this function)
As for the popup its html / css its just a div that shows when needed and hiden when not needed, I just
cant work out the hiden part as I've never used Cookies.
If a $_SESSION only lasts whilst the viewer browses the site, the next time they go on they're gonna see the message again, so I need a $_COOKIE then as i don't want it annoying the viewer everytime they visit. I know that a cookie you can change its expiration time so it can be set for say 90 days.
OK ... as the rules stated by Stephan ...
You can and will use one cookie to remember if they are supposed to allow cookies.
That one cookie is valid and legal because it's a necessary part of the script operation.
By that I mean, as the website is displayed and operated, if cookies are not saved,
what happens with the web pages or website? Can the website operate if the user
doesn't allow cookies?
Can the site be used without cookies? I guess that is my question.
Let us know, and we'll provide a script to accept or deny cookies ... but it will
still use one cookie to remember that (which is legal in this case).
And an fyi ... your site looks horrible with the main top banner being a warning about cookies.
That's not the way to design a website. Most users will click away as soon as they see that.
I think that top part about cookies will destroy the site (visitor count, ranking, etc) completely.
But, if that's what your client wants, that's his problem.
A bad way to do business for a car company.
Yes the site may look ugly with the banner at the top but it has to be in site when a user views any page, if they accept it disappears and stays hidden until they deletes cookies from their browser.
It not something I would put on a website if I had the choice but I don't it has to have that or something similar by LAW it cannot just be stated in a terms and agreements section on the site, and most sites will have this or something similar now if they are in the EU.
I have already seen several websites that have this, ugly or not it has to be done unless the owner wants a court summons and a fine of up to £500,000.
If it is a bad way to design a website then how come companies like the BBC are using it???
again here are some examples -
PS - I appreciate your concerns and I don't mean to sound like I'm being argumentative about this but I don't want to discuss why they have brought this law in, what its doing or what the site looks like I just want help on sorting this issue out.
Thanks again :)
First you need to deal with the top banner itself.
If they click NO, you need to have it go to a script called "nocookie.php".
So, create that script and just put this in it for now.
Create another script called "yescookie.php";
At the top of your script that displays the permission box (banner), you'll
need to see if the cookie called "permission" exists, and if it does, is the value "Y"?
If the value is "Y", you won't display that banner.
After 2 weeks, the banner will reappear, because the cookie is erased.
top of scripts
Ok I've created a file called nocookie.php and yescookie.php and placed the other code where the banner will be including the banner in the code.
Thanks soooo much mlseim
ALL SORTED YAY
Thanks again mlseim
|All times are GMT +1. The time now is 07:50 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.