How to check whether cookies are disbled or not in the
browser ? If that is the case how do you handle the
sessions ?



How to check whether cookies are disbled or not in the browser ? If that is the case how do you ha..

Answer / srikanth

If output exists prior to calling this function, setcookie()
will fail and return FALSE. If setcookie() successfully
runs, it will return TRUE. This does not indicate whether
the user accepted the cookie.

http://in2.php.net/manual/en/function.setcookie.php

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More PHP Interview Questions

What are the different filter functions used to filter a variable?

1 Answers  


What are the popular content management systems (cms) in php?

1 Answers  


Is php an array?

1 Answers  


What is php routing?

1 Answers  


Explain the difference between mysql_connect and mysql_pconnect?

1 Answers  


Php says that an array is an ordered map. But how the values are ordered in an array?

1 Answers  


How to track user logged out or not? When user is idle?

1 Answers  


Explain mixed and callback functions?

1 Answers  


What are the special characters you need to escape in double-quoted stings?

1 Answers  


What are string functions?

1 Answers  


Whats the difference between include() and require()?

4 Answers  


Explain the value of the variable input is a string 1,2,3,4,5,6,7. How would you get the sum of the integers contained inside input?

1 Answers  


Categories