You are not logged in.

#1 2015-11-06 11:56:20

Muhammad
User RankUser RankUser RankUser RankUser RankUser Rank
بِسمِ اللَّهِ الرَّحمٰنِ الرَّحيمِ
From: Sahiwal Division
Registered: 2012-03-22
Posts: 22,197
Website

Specifies that the cookie must be alive for one hour?

Java Quizzes SCWCD (Sun Certified Web Component Developer)

Question:
Which method correctly specifies that the cookie must be alive for one hour? Assume all variables are declared and initialized properly.

Option A):
cookie.setMaxAge(60);
Option B):
cookie.setMaxAge(1);
Option C):
cookie,setMaxAge(3600);
Option D):
cookie.setTime(1);

Correct Answer is Option C):
cookie,setMaxAge(3600);

Explanation:
The setMaxAge value is specified in seconds.


Online Web Tutorials And Interview Questions With Answers Forum:
https://globalguideline.com/forum/

2015-11-06 11:56:20

Advertisement
Ads By Google

Re: Specifies that the cookie must be alive for one hour?



\n

Board footer