COMPUTER NETWORKS AND COMMUNICATIONS
INTERNET AND WEB TECHNOLOGIES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
POST
|
|
SESSION
|
|
METHOD
|
|
ENCRYPT
|
Detailed explanation-1: -A session is a way to store information (in variables) to be used across multiple pages.
Detailed explanation-2: -Session variables are stored in associative array called $ SESSION[]. These variables can be accessed during lifetime of a session. The following example starts a session then register a variable called counter that is incremented each time the page is visited during the session.
Detailed explanation-3: -setItem() This method is called to store values in session storage. This method takes in the key and values as parameters.
Detailed explanation-4: -You can access a session variable’s value by using the global variable $ SESSION.
Detailed explanation-5: -Use Session Variables to store data server-side in a key-value format. Use it to cache, for example, for configurations and app context data. Session Variables clear when users log out of the app or close all the browser windows.