this post was submitted on 09 Jul 2023
3 points (100.0% liked)

Programming

43 readers
1 users here now

This magazine is dedicated to discussions on programming languages, software development, and coding. Whether you are a beginner programmer or an experienced developer, this is the place for you. Here you can share your knowledge, ask questions, and engage in discussions on topics such as coding languages, software engineering, web development, and more. From the latest trends and frameworks to tips and tricks for debugging, this category covers a wide range of topics related to programming.

founded 2 years ago
 

I signed in with my Google account. I was looking at the cookies kbin sets and the user token REMEMNERME is only set to last for one week.

Does this mean I have to religion after a week?

If not, how does kbin know to keep me logged in after the REMEMBERME cookie expires?

top 2 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago

Most likely if you don't visit for a week, you will get logged out. But if you do visit before it expericed, it just resets the cookie for another week.

I'm not on kbin so I cannot check, but that's my guess.

[–] [email protected] 2 points 1 year ago

Cookies can have something called a “sliding expiration”, which means it will automatically extend the expiration date when you visit. There is also an absolute expiration, so at some point it’ll have to be reset no matter what.