can not distroy a session variable

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
foolish
Forum Newbie
Posts: 2
Joined: Wed Apr 14, 2004 12:19 pm
Contact:

can not distroy a session variable

Post by foolish »

I wrote some code like this:

$var=10;
session_start();
session_register("var");
session_unset();
session_destroy();

I recieved a warning that I can not distroy my session variable.
Please help me to solve this problem!
Thanks very much!
Post Reply