Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GIAC Exam GSNA Topic 1 Question 61 Discussion

Actual exam question for GIAC's GSNA exam
Question #: 61
Topic #: 1
[All GSNA Questions]

Which of the following is a method of the HttpSession interface and is used to retrieve the time when the session was created?

Show Suggested Answer Hide Answer
Suggested Answer: A

The getCreationTime() method returns the time when the session was created. The time is measured in milliseconds since midnight January 1, 1970. This method throws an IllegalStateException if it is called on an invalidated session.

Answer D, B, and C are incorrect. These methods do not exist in the HttpSession interface.


Contribute your Thoughts:

Glendora
2 months ago
D. getTime(). I mean, it's got the word 'time' in it, so it must be the right answer, right? *chuckles*
upvoted 0 times
Tatum
20 days ago
I agree, A) getCreationTime() sounds like the right choice for that.
upvoted 0 times
...
Flo
21 days ago
I think A) getCreationTime() is the correct method to retrieve the time when the session was created.
upvoted 0 times
...
Gail
23 days ago
D) getTime()
upvoted 0 times
...
Lashaunda
26 days ago
C) getSessionTime()
upvoted 0 times
...
Cyril
1 months ago
B) getSessionCreationTime()
upvoted 0 times
...
Annita
1 months ago
A) getCreationTime()
upvoted 0 times
...
...
Loise
2 months ago
A. getCreationTime(). Easy peasy, just like my grandma's lemon squeezy.
upvoted 0 times
...
Elsa
3 months ago
I agree with Lera, because it makes sense that it would be used to retrieve the time when the session was created.
upvoted 0 times
...
Lera
3 months ago
I think the answer is A) getCreationTime()
upvoted 0 times
...
Marlon
3 months ago
I'm going with B. getSessionCreationTime(). Sounds like it does exactly what the question is asking for.
upvoted 0 times
Sanjuana
2 months ago
Thanks for clarifying. I'll remember that for next time.
upvoted 0 times
...
Sanjuana
2 months ago
No, it's not A. B) getSessionCreationTime() is the correct method for that.
upvoted 0 times
...
Sanjuana
2 months ago
I think it's A) getCreationTime(). It sounds like it could be the right method.
upvoted 0 times
...
Sanjuana
2 months ago
That's correct! getSessionCreationTime() is the method used to retrieve the time when the session was created.
upvoted 0 times
...
...
Myra
3 months ago
Hmm, I'm pretty sure it's getCreationTime(). That's the most logical choice here.
upvoted 0 times
Anika
3 months ago
Great, thanks for confirming!
upvoted 0 times
...
Jolanda
3 months ago
Yes, that's correct. It returns the time when the session was created.
upvoted 0 times
...
Wai
3 months ago
I think you're right, it's getCreationTime().
upvoted 0 times
...
...

Save Cancel