What is the different between cookies and session in php?

Answer Posted / sekhar

both are used for session tracking.

but there is some difference between these two.

cookies are stored in client side (not secured)
sessions are stored in server side (secured)

Is This Answer Correct ?    59 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to check an element is exists in array or not in php?

562


What is isset and unset in php?

525


What is the use of php and mysql?

538


Steps for the payment gateway processing?

541


What is cookie?

523






Maine 12th ke bad 2 years ka web designing ka course kiya hai. Php me achcha hu. Ek fresher ko is field me kitna mil sakta hai ?

4763


How can we display information of a variable and readable by a human with php?

525


What is the difference between require_once and require in php?

547


How to count a number of words in a string in php?

500


What is the difference between laravel and php?

494


Is php deprecated?

516


How to initiate a session in php?

643


Where is session id stored?

506


Which is better mysql or sql?

519


Tell me which programming language does php resemble to?

491