Cyber Monday 2024! 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
14 days 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
...
Loise
14 days ago
A. getCreationTime(). Easy peasy, just like my grandma's lemon squeezy.
upvoted 0 times
...
Elsa
1 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
1 months ago
I think the answer is A) getCreationTime()
upvoted 0 times
...
Marlon
1 months ago
I'm going with B. getSessionCreationTime(). Sounds like it does exactly what the question is asking for.
upvoted 0 times
Sanjuana
2 days ago
Thanks for clarifying. I'll remember that for next time.
upvoted 0 times
...
Sanjuana
4 days ago
No, it's not A. B) getSessionCreationTime() is the correct method for that.
upvoted 0 times
...
Sanjuana
9 days ago
I think it's A) getCreationTime(). It sounds like it could be the right method.
upvoted 0 times
...
Sanjuana
1 months ago
That's correct! getSessionCreationTime() is the method used to retrieve the time when the session was created.
upvoted 0 times
...
...
Myra
2 months ago
Hmm, I'm pretty sure it's getCreationTime(). That's the most logical choice here.
upvoted 0 times
Anika
1 months ago
Great, thanks for confirming!
upvoted 0 times
...
Jolanda
1 months ago
Yes, that's correct. It returns the time when the session was created.
upvoted 0 times
...
Wai
2 months ago
I think you're right, it's getCreationTime().
upvoted 0 times
...
...

Save Cancel