The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Making a Really Modern website
Brian Chandler
post May 11 2021, 10:40 AM
Post #1


Jocular coder
********

Group: Members
Posts: 2,418
Joined: 31-August 06
Member No.: 43



It's amazing how some things just keep going, to see the same names (if not faces) as a decade or so ago. My website has carried on unchanged, and I find myself looking at css stylesheets (in particular) that were last modified in 2008. Anyway, a couple of general questions...

The WDG html validator doesn't seem to work any more. Is there a recommendation somewhere for replacements (including css)?

Secondly, the cookie thing. I see that Almost Every website has a thing that pops up and says "Will you let us send cookies to your browser?", and I presume that if I say "No", it sends a cookie saying "No cookies". Or something like that. I believe this is an EU idea (well obviously, it's the product of a legal "mind" somewhere), and it seems to make no sense. I am not (in general) subject to EU law, because I am in Japan and am also no longer an EU citizen; what can I read to understand what this is all supposed to mean, or am I being silly in even thinking about it?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post May 11 2021, 12:23 PM
Post #2


.
********

Group: WDG Moderators
Posts: 8,934
Joined: 10-August 06
Member No.: 7



I only know of http://validator.w3.org/ (I recall it sometimes interpret the HTML5 spec in arbitrary ways). For CSS there's http://jigsaw.w3.org/css-validator/

Most websites probably just add the cookie prompt because everybody else are doing it. From what I've read on random websites, the cookie law only applies to companies in the EU, or companies doing business primarily in the EU, and even then there's an exception for cookies necessary for the functionality of a website (such as shopping carts), as opposed to cookies used for spying or advertizing.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Nov 19 2021, 05:56 AM
Post #3


Jocular coder
********

Group: Members
Posts: 2,418
Joined: 31-August 06
Member No.: 43



QUOTE(Christian J @ May 12 2021, 02:23 AM) *

I only know of http://validator.w3.org/ (I recall it sometimes interpret the HTML5 spec in arbitrary ways). For CSS there's http://jigsaw.w3.org/css-validator/

Most websites probably just add the cookie prompt because everybody else are doing it. From what I've read on random websites, the cookie law only applies to companies in the EU, or companies doing business primarily in the EU, and even then there's an exception for cookies necessary for the functionality of a website (such as shopping carts), as opposed to cookies used for spying or advertizing.


Bit old, but... Yes, there does seem to be an exception for the cookie which is the only way of recording the user's refusal to accept any cookies at all. <g>

Actually a real question too: I am just dealing with the expiry time for "cookies necessary for operation", like basket, destination selection etc. Is there a norm? I mean like 90 days, or is that long? If I use the max-age setting, I thought of 10 millions seconds (115 days), but I am unclear whether that gets refreshed each time the cookie is used, or whether I have to refresh it every session?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Nov 19 2021, 12:06 PM
Post #4


.
********

Group: WDG Moderators
Posts: 8,934
Joined: 10-August 06
Member No.: 7



QUOTE(Brian Chandler @ Nov 19 2021, 11:56 AM) *

Actually a real question too: I am just dealing with the expiry time for "cookies necessary for operation", like basket, destination selection etc. Is there a norm? I mean like 90 days, or is that long?

Can't say about norms, but wouldn't the duration of the session suffice? The online part of the purchase should be finished within a single session, and after that there wouldn't be a need for a cookie.

But I suppose some customers get stuck choosing between articles, and decide to continue at a later browser session? When that happens to me (as a customer) I just save the URLs to each article in a text file, but I guess a store could let the basket cookie last between sessions as well. Then I see no need for an upper time limit: since the user created the shopping basket, its cookie should be "necessary for operation" until whenever the user indicates he doesn't want the basket anymore.

QUOTE
If I use the max-age setting, I thought of 10 millions seconds (115 days), but I am unclear whether that gets refreshed each time the cookie is used, or whether I have to refresh it every session?

I'd guess the max-age is set with the cookie creation, so unless you create a new cookie in each session the original max-age value will be retained. Maybe you could test this with say a 15 minute experimental cookie? unsure.gif

This post has been edited by Christian J: Nov 19 2021, 12:34 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Nov 21 2021, 03:33 AM
Post #5


Jocular coder
********

Group: Members
Posts: 2,418
Joined: 31-August 06
Member No.: 43



You can see the cookies on this page:
https://imaginatorium.com/cookies.html

The basket is simple - we keep it for some time (7, 30, 90 days) then if not used it disappears. But for example the destination selection: some regular customers come back year after year - if they have selected Spain, there is no obvious reason ever to delete it. But it does not even seem possible to access the expiry date, only to change it, so either you refresh for every access, or it suddenly needs resetting after (eg) 2 years.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Nov 21 2021, 02:28 PM
Post #6


.
********

Group: WDG Moderators
Posts: 8,934
Joined: 10-August 06
Member No.: 7



QUOTE(Brian Chandler @ Nov 21 2021, 09:33 AM) *

But for example the destination selection: some regular customers come back year after year - if they have selected Spain, there is no obvious reason ever to delete it.

But they still need to enter their full address every time? Then re-entering their country shouldn't be too much extra work.

QUOTE
But it does not even seem possible to access the expiry date

As a workaround, someone suggested that you could add the expiry date as another value in the cookie when it's created.

But I don't think it's a big deal if an online store cookie expires, unless the store requires an account and you must find some long forgotten password in order to login again.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 29th November 2021 - 01:56 AM