Which of the following represents the proper way to set a
session variable?
Answer:
a. $_SESSION['foo'] = 'bar';
b. session_start();
c. session_set_save_handler ('myopen', 'myclose', 'myread',
'mywrite', 'mydelete', 'mygarbage');
d. $foo = $_SESSION['foo'];
2.When administering MySQL, you should make the data
directory accessible via the operating system
3.which statement can be used to determine how the optimizer
resolves a query
Answer Posted / rubinthomas
1.In order to set a session variable u must first declare
the session_start() function as the first statement when u
execute your page after which can u assign or manipulate
session variables $_SESSION["foo"] = 'bar';
| Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
How to replace a text in a string with another text in php?
How do you destroy a particular or all Sessions?
What is difference between readonly and constant?
How do I stop php artisan serve in windows?
What is the difference between fopen() and fclose()?
How to test if a variable is an array?
Tell me what is the use of explode() function?
What is the default time in seconds for which session data is considered valid?
Is array function in php?
What is the use of ajax in php?
What is PHP? Who is the father or inventor of PHP?
What are global variables in php?
What is multidimensional array in php?
Is not null in php?
Is php a backend?