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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is session in php why it is use?

484


Tell us how to set cookies in php?

533


What is the function mysql_pconnect() useful for?

549


What is the special meaning of __sleep and __wakeup?

571


Which function would you use to replace a record in a database in php?

585






Is php a strongly typed language?

558


What is the use of Php variables?

585


What is the use of session and cookies in php?

523


What was the old name of php?

955


Why php is sometimes called as embedded scripting language?

481


Can we use session in mvc?

553


How many open modes available when a file open in PHP?

647


Which function would you use to read a line of data from a file in php?

559


What are the different ways to login to a remote server?

479


How to display your correct URL of the current web page?

637