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

Write a program to display table of a number using php?

654


When viewing an html page in a browser, the browser often keeps this page in its cache. What can be possible advantages/disadvantages of page caching? How can you prevent caching of a certain page (please give several alternate solutions)?

732


How to execute an sql query?

685


Why does php need server?

708


What are the advantages of indexes?

673


What are computer variables?

694


What is namespace and use in php?

715


How to access a global variable inside a function?

705


What is php namespace?

713


Can we use include ("xyz.php") two times in a php page "index.php"?

765


What was the old name of php?

1153


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

679


Write a select query that will be displayed the duplicated site name and how many times it is duplicated?

758


What does php do?

704


What is mvc in php?

737