Solved

Persistent cookie time

Posted on 2014-01-28
2
271 Views
Last Modified: 2014-01-29
If I set a persistent cookie to expire after 30 minutes I would like to know if this means the cookie will expire after 30 minutes regardless of the user being still logged into the site or does this mean after the user closes the browser from that point on it will take 30 minutes to expire.
I'm publishing Sharepoint through ISA and wanted to find a more secure way of dealing with persistent cookies.
0
Comment
Question by:Sid_F
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 48

Accepted Solution

by:
dbrunton earned 500 total points
ID: 39816121
>>  The cookie will expire after 30 minutes regardless of the user being still logged into the site.

See https://en.wikipedia.org/wiki/HTTP_cookie#Expires_and_Max-Age and the phrase

... allows the use of the Max-Age attribute to set the cookie’s expiration as an interval of seconds in the future, relative to the time the browser received the cookie.

which is what I suspect you are doing.
0
 
LVL 6

Author Closing Comment

by:Sid_F
ID: 39817134
Thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question