A

Admin • 831K Points
Coach

Q. Which method is used to retrieve session data?

Code:
$userId = $request->____()->get('user_id');
  • (A) cookie
  • (B) header
  • (C) session
  • (D) path
  • Correct Answer - Option(C)
  • Views: 1
  • Filed under category Trishul API
  • Hashtags:

Explanation by: Admin
session() returns the Session object to manage session data.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.