nerdexam
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)
  • A
    10% (3)
  • B
    7% (2)
  • C
    80% (24)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 312-92 Practice