Why are sessions used?



Why are sessions used?..

Answer / Chandra Shekher

Sessions are used in PHP to maintain state between requests. They allow a web application to store user data such as login status, preferences, and shopping cart items during multiple page requests within a single session.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

How to pass variables by references?

1 Answers  


What is the use of $_request variable?

1 Answers  


Can I learn php without knowing c?

1 Answers  


How the values are ordered in an array?

1 Answers  


Do while loops?

1 Answers  


What is crypt () in php?

1 Answers  


How to get elements in reverse order of an array in php?

1 Answers  


What is cookie and why do we use it?

1 Answers  


What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?

1 Answers  


How to remove values saved in the current session?

1 Answers  


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

1 Answers  


what is the current salary package in India for a PHP & MySQL programmer who has 3 years experience

127 Answers   ABC, BLG Logistics, Google, HCL, IBM, Infosys, People Group, PHP, Torque Infotech, V Angelz Technologies, Yahoo,


Categories