Password Protect a page – Cookie Duration

  • Unknown's avatar

    Hi, I can see how to password protect a page. When I do the page then places a cookie on a visitor’s browser. That cookie will then last 10 days before expiring. Is there any way of changing in wordpress.com how long that cookie lasts for. What I would ideally like is for that cookie to only be valid for the session. In wordpress.org you can set a cookie duration to 0 and it will then be a session only cookie. Can this be done in wordpress.com?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    I do not believe so, however, I will type modlook into the sidebar tags on this thread for a Staff response. How do I get a Moderator/Staff reply for my question? https://en.support.wordpress.com/getting-help-in-the-forums/#how-do-i-get-a-moderatorstaff-reply-for-my-question Also subscribe to this thread so you are notified when they respond and be patient while waiting. To subscribe look in the sidebar of this thread, find the subscribe to topics link and click it.

  • Unknown's avatar

    Hello,

    Is there any way of changing in wordpress.com how long that cookie lasts for.

    It’s not possible to change how long a cookie is active for on WordPress.com. I’m curious, why do you want to change this?

  • Unknown's avatar

    Hello Gemma,

    I want some pages where it is possible for members of my group to download PDF files. We also want to be able to use the space for members to put details of their particular interests. Ours is an academic history society and so one might say that he or she is particularly interested in the Victorian period whilst another is interested in, let’s say the Georgian. So people can identify others who share their particular area of interest. I don’t want it to be possible for non members to see this material as one or two of my committee have expressed concerns about data protection. On an ordinary computer such as my home computer that’s just not an issue. That’s because the cookie is stored somewhere in c:users or, if I’m using a computer on my workplace network, then it will again be stored in my network user space. However, if one of my group is in an internet cafe or at a public/shared computer where you don’t have to log in (such as an internet cafe) and a non member then logs in to the same site within the next ten days then they will be able to get at the hidden content as there isn’t a C:users area and the cookie will remain active. Yes? No?

    Having a button which you could click to log out of a password protected page when you have finished with it which would then delete the cookie would, I think put one or two people’s minds at rest.

    Now I recognise that my group is only about 150 or so members most of whom are unlikely to be using a public computer but it doesn’t seem a bad idea to be able to close securely a password protected page when using a public computer. Perhaps that’s something for wordpress.com to consider for a future revision

    By the way my OP had the wrong blog name. I edit two different ones. The one I want help with is https://navaldockyards.org/members-area/

  • Unknown's avatar

    Hi there,

    I want some pages where it is possible for members of my group to download PDF files.

    I would suggest uploading the file to your Media Library, then select the uploaded file and click Edit to find the file URL. You can use this to create a link to that file in a page of your choice.

    a non member then logs in to the same site within the next ten days then they will be able to get at the hidden content

    Yes, anyone visiting the page using the same browser would be able to see it — unless they cleared the cookies after viewing. In this instance, it’s not possible to change how those cookies behave.

    Have you considered inviting people using different user roles? This guide explains the roles you can choose from:

    https://en.support.wordpress.com/user-roles/

    I’ll pass on your concerns about the cookies for password protected pages.

  • The topic ‘Password Protect a page – Cookie Duration’ is closed to new replies.