Can’t find an answer?

Can’t find an answer?

Ask us to get the answer

  • This forum is empty.

What is the return type of session_set_save_handler() function?

(a) boolean

(b) integer

(c) float

(d) character

I got this question in an interview for job.

I want to ask this question from Session Handling-2 topic in section File and Session Handling in PHP of PHP

  • PHP
  • November 1, 2023 at 5:06 am

The session_start() function must appear _________

(a) after the html tag

(b) after the body tag

(c) before the body tag

(d) before the html tag

I got this question in unit test.

I want to ask this question from Session Handling-2 topic in section File and Session Handling in PHP of PHP

  • PHP
  • October 1, 2023 at 5:06 am

Which function is used to transform PHP’s session-handler behavior into that defined by your custom handler?

(a) session_set_save()

(b) session_set_save_handler()

(c) Session_handler()

(d) session_save_handler()

I had been asked this question by my college professor while I was bunking the class.

This interesting question is from Session Handling-2 in section File and Session Handling in PHP of PHP

  • PHP
  • October 6, 2023 at 5:06 am

Which function effectively deletes all sessions that have expired?

(a) session_delete()

(b) session_destroy()

(c) session_garbage_collect()

(d) SessionHandler::gc

The question was posed to me in an international level competition.

Asked question is from Session Handling-2 topic in section File and Session Handling in PHP of PHP

  • PHP
  • October 24, 2023 at 5:06 am

Which parameter determines whether the old session file will also be deleted when the session ID is regenerated?

(a) delete_old_file

(b) delete_old_session

(c) delete_old_session_file

(d) delete_session_file

This question was posed to me in a job interview.

I’d like to ask this question from Session Handling-2 in division File and Session Handling in PHP of PHP

  • PHP
  • October 22, 2023 at 5:06 am

An attacker somehow obtains an unsuspecting user’s SID and then using it to impersonate the user in order to gain potentially sensitive information. This attack is known as __________

(a) session-fixation

(b) session-fixing

(c) session-hijack

(d) session-copy

I got this question in final exam.

Asked question is from Session Handling-2 topic in chapter File and Session Handling in PHP of PHP

  • PHP
  • November 12, 2023 at 5:06 am

Which one of the following statements should you use to set the session username to Nachi?

(a) $SESSION[‘username’] = “Nachi”;

(b) $_SESSION[‘username’] = “Nachi”;

(c) session_start(“nachi”);

(d) $SESSION_START[“username”] = “Nachi”;

I got this question by my school principal while I was bunking the class.

I want to ask this question from Session Handling-2 topic in chapter File and Session Handling in PHP of PHP

  • PHP
  • August 20, 2023 at 5:06 am

What will the function session_id() return is no parameter is passed?

(a) Current Session Identification Number

(b) Previous Session Identification Number

(c) Last Session Identification Number

(d) Error

I have been asked this question in homework.

My question is based upon Session Handling-2 topic in chapter File and Session Handling in PHP of PHP

  • PHP
  • September 22, 2023 at 5:06 am

Which function is used to erase all session variables stored in the current session?

(a) session_destroy()

(b) session_change()

(c) session_remove()

(d) session_unset()

This question was posed to me during an interview.

This interesting question is from Session Handling-2 in portion File and Session Handling in PHP of PHP

  • PHP
  • October 15, 2023 at 5:06 am

Which one of the following function is used to start a session?

(a) start_session()

(b) session_start()

(c) session_begin()

(d) begin_session()

The question was asked during an online interview.

This question is from Session Handling-1 topic in portion File and Session Handling in PHP of PHP

  • PHP
  • November 12, 2023 at 5:06 am

Viewing 15 topics - 301 through 315 (of 485 total)

1 2 3 20 21 22 31 32 33
  • You must be logged in to create new topics.