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

How can we extract string ‘abc.com ‘ from a string info@abc.com" target="_blank">http://info@abc.com using regular expression of php?

6 Answers  


What are the features of object-oriented programming in php?

0 Answers  


Does jwt protect against csrf?

0 Answers  


Can I use node js with php?

0 Answers  


Explain about PHP filter and why it should be used?

0 Answers  






What is the use of 'print' in php?

0 Answers  


How is it possible to parse a configuration file?

0 Answers  


What are psrs?

0 Answers  


How to create a directory?

0 Answers  


What are the php functions?

0 Answers  


How can I prevent sql-injection in php?

0 Answers  


Does php 7 support mysql?

0 Answers  


Categories