What is the difference between session_unregister() and session_unset()?



What is the difference between session_unregister() and session_unset()?..

Answer / Dharmendra Kumar Kannaujiya

session_unregister($sessionName) unregisters a specific user variable in the current session, while session_unset() destroys all user variables associated with the current session.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

how to include external php file in to html page?

8 Answers   Eccentric Infotech,


How can I rotate an image?

1 Answers   Rushmore Consultancy,


What is difference between strstr() and stristr()?

1 Answers  


Write a program to find no of days between two dates in php?

1 Answers  


What are the 5 types of variables?

1 Answers  


What is csrf validation?

1 Answers  


What is php artisan tinker?

1 Answers  


What is polymorphism with example in php?

1 Answers  


from which profile r you coming?

1 Answers  


How to set session.gc_divisor properly?

1 Answers  


What is difference between strstr() and stristr() in PHP?

1 Answers  


How to close a session properly?

1 Answers  


Categories