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 / chetana
$_SESSION['FOO']='bar';
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is xss and csrf?
What is the best php framework 2018?
What are the benefits of using php?
Which functions are used to count the total number of array elements in php?
Explain what are the three classes of errors that can occur in php?
Tell me how is it possible to return a value from a function?
What is difference between session and cookies in php?
How to fix "headers already sent" error in php
Does php 7 support multiple inheritance?
What are the ways to define a constant in php?
How can you send http header to the client in php?
Do you know how to enable error reporting in php?
How to receive a cookie from the browser?
What will the ?getdate() function returns in PHP?
How can php and javascript interact?