EC-Council
312-92 · Question #17
What will the following ASP script accomplish on a webpage? <% Response.CacheControl = "no-cache" Response.AddHeader "Pragma", "no-cache" Response.Expires = -1 if session("UID")="" then…
The correct answer is C. Checks whether user has already logged on. See the full explanation below for the reasoning.
Question
What will the following ASP script accomplish on a webpage? <% Response.CacheControl = "no-cache" Response.AddHeader "Pragma", "no-cache" Response.Expires = -1 if session("UID")="" then Response.Redirect "Logon.asp" EC-Council 312-92 Exam Response.End end if %>
Options
- ARedirect users to the logon page if they do not have a valid certificate
- BLogged on users will timeout after hour
- CChecks whether user has already logged on
- DChecks the user's cache for personal information
How the community answered
(30 responses)- A10% (3)
- B7% (2)
- C80% (24)
- D3% (1)
Community Discussion
No community discussion yet for this question.