shlok.mobi
General Knowledge Questions and Answers - 107
php
Questions and Answers
Prepare for Interview
Question:
How do you destroy a particular or all Sessions?
Answer:
session_start();
// store session data
$_SESSION['views']=1;
unset($_SESSION['views']); // If you wish to delete some session data, you can use the unset()
session_destroy(); // You can also completely destroy the session by calling the session_destroy() function. session_destroy() will reset your session and you will lose all your stored session data.
?>


More Questions :
  • What is the meaning of Open Source Software?
  • How can you associate a variable with a session?
  • What types of data can be used as array keys?
  • Distinguish between urlencode and urldecode?
  • How to get the value of current session id?
  • How can we create a database using PHP and MySQL?
  • How do i find out weather a no is odd or even ?
  • what is CAPTCHA ?
  • How can we increase the execution time of a php script?
  • What is the use of header() function in php ?
  • What is the use of explode() function ?
  • Write a program using while loop
  • What's the difference between include and require?
  • What is PHP?
  • What is Full form of PHP ? Who is the father or inventor of PHP ?
  • How many ways we can pass the variable through the navigation between the pages?
  • can a script come to a clear termination?
  • do i store binary in my sql?
  • Can I coonect to Ms-access database w/o a DSN?
  • What is the purpose of ob_start() ?
  • Test your English Language
  • Comics of the Day
  • Govardhan Puja Celebration
  • New Years Makeup Ideas
  • Tips to get ready for Winter
  • Jogging Tips and Guidelines
  • Largest Deserts of the World
  • Smartphone Photography Tips and Tricks
  • Dating Tips For Men
  • Amazing Dances From Around The World
  • Montreal
  • Linux Interview Q & A
  • Amazing US Lakes for Summer Vacation
  • PHP Interview Q&A
  • Weird Ghost Stories
  • jyotirlinga
  • Christmas SMS
  • What to Eat in punjab
  • Unstable Countries In The World
  • The Best Selling Cars in the World
  • Precautions while using Oxygen Therapy
  • Celebrities Who Are Flying Solo This Valentines Day
  • loading...

    Did you Know :

    Pixie, a Siberian Husky, gave birth to 7 puppies, one of which was bright green
    More ...

    Shlok Consultants