How to calculate cookie time? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to calculate cookie time?

17th Aug 2016, 5:50 AM
G.Durkadevi
3 Answers
+ 1
X is your cookie. When adding value to X (initilization) set another cookie (lets call it Y) with current date in milliseconds. When you want to calculate time of X, you can use value of Y and substract it from current date. You will get how much time passed after initialization of X cookie.
18th Aug 2016, 10:30 AM
Bekir Uzun
Bekir Uzun - avatar
0
that's true
4th Sep 2016, 2:39 AM
Kauma Shafiq
Kauma Shafiq - avatar
0
Security Issue: Insecure Protocol An application does not use a secure protocol, such as HTTPS, which makes the session cookie prone to network eavesdropping. The following security issues could apply if you do not perform the tasks presented in this document. Security Issue: Shared Session Cookies All applications share the same HTTP or HTTPS session cookie. This shared session-cookie scenario enables hackers to intervene by using an untrusted application to hijack the session cookie. With the hijacked session cookie, the untrusted application can impersonate the user and access protected web resources. Security Issue: A Less Secure Application If a single “less secure” application is hacked, the security of the entire infrastructure is compromised. Security Issue: Access to User Profile Attributes The untrusted application can use the session cookie to obtain and possibly modify the profile attributes of the user. If the user has administrative privileges, the application could do much more damage.
20th Dec 2016, 10:56 AM
Sohail Barat
Sohail Barat - avatar