answersLogoWhite

0

if you're using a session, you can simply use the unset function:

unset($_SESSION);

session_unset();

session_destroy();

good luck !

User Avatar

Wiki User

∙ 12y ago
User Avatar

What else can I help you with?

Related Questions

What is php code for online recruitment system?

write php coding for online carrier guidance and placement unit


How do you compile php code?

Oh, dude, compiling PHP code? That's like trying to teach a cat to do algebra. PHP is an interpreted language, so you don't compile it like you would with C or Java. You just write your PHP code in a text editor, save it with a .php extension, and run it on a web server. Easy peasy, lemon squeezy.


Write down a PHP code to add a session variable?

The preferred way is to simply alter the session superglobal. <?php $_SESSION['variable'] = "value"; ?>


What is Zen Studio PHP?

Zen Studio for PHP is an integrated development environment (IDE) specifically designed for PHP web development. It provides features like code editing, debugging, and profiling to help developers write and maintain PHP code efficiently. Zen Studio also offers integrations with popular PHP frameworks and tools to streamline the development process.


How do you code a social network?

Most social networks are written in PHP. To write one, you would probably need to know HTML, CSS, and PHP. Once you are proficient those languages, you'll be able to write a social network.


What are semantics in PHP?

PHP is related with HTML. HTML can be included into PHP script as well as PHP script can be included into HTML code. PHP begins and ends with <?php ?>. PHP is mix of few languages so semantics is mixed too.


How do you write a php algorithm?

Well if you know php then you can write your own algorithm php syntax is <?php //open php tag $num = 1; $num2 = 2; $total = $num + $num2; echo $total; ?> //close php tag


What is php extension?

We can write php extension is many way... .php , .php5, .php4


What is PHP enabled host?

A host that allows you to write in PHP


What is syntax in php?

We can use php tags in different ways. <?php //php code to be written here ?> OR <? //php code ?> This tag will not work when we using editors such as macromedia dreamweaver. OR < script language="php"> //php code </script>


What does a PHP 5 ChangeLog do?

PHP is a scripting language this is used for web development. The PHP 5 ChangeLog is log which lists all of the fixed bugs on PHP Version 5. This can be found on the PHP website as a point of reference.


How do you change the language code in a PHP page?

I have little idea of your question however <?php #code in here ?> is the starter for PHP, and then anything outside is HTML.