COMPUTER NETWORKING

APPLICATION LAYER

INTRODUCTION

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following attribute is used for a cookie to last beyond a single browsing session?
A
Average
B
Lifetime
C
Maxage
D
Lowage
Explanation: 

Detailed explanation-1: -If you want a cookie to last beyond a single browsing session, you must tell the browser how long (in seconds) you would like it to retain the cookie by specifying a max-age attribute. If you specify a lifetime, the browser will store cookies in a file and delete them only once they expire.

Detailed explanation-2: -Explanation: sessionStorage, localStorage and Document path all are used to store data on the client-side. Each one has its own storage and expiration limit. Cookie visibility is scoped by the document origin as Local Storage and Session Storage are, and also by document path.

Detailed explanation-3: -Expires sets an expiry date for when a cookie gets deleted. Max-age sets the time in seconds for when a cookie will be deleted (use this, it’s no longer 2009) Internet Explorer (ie6, ie7, and ie8) does not support “max-age”, while (mostly) all browsers support expires.

There is 1 question to complete.