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

Which is variable cost?

0 Answers  


What are the __construct() and __destruct() methods in a php class?

0 Answers  


How can I reset an array in PHP?

4 Answers   Rushmore Consultancy, TCS,


What are the data types in php?

0 Answers  


Is it possible to use com component in php?

0 Answers  






What is basic php?

0 Answers  


What is the difference between echo and print statement?

11 Answers   Rushmore Consultancy,


How do i explode this string '||25||34||73||94||116||128' i need to have a array like this array ( 0 => '25', 1 => '34', 2 => '73', 3 => '94', 4 => '116', 5 => '128' ) explode("||", $array); didnt work for me i get this array array ( 0 => '', 1 => '25', 2 => '34', 3 => '73', 4 => '94', 5 => '116', 6 => '128', )

2 Answers  


What is symfony php?

0 Answers  


How to get tabels from database in php andd display it in the table form using codelgniter? plz help me

2 Answers  


What is difference between required and include in php?

0 Answers  


what is CURL?

0 Answers  


Categories