Jump to content

Logout help


182x

Recommended Posts

hey guys, I am deadling witha very old version of PHP and I have to use $HTTP_SESSION_VARS for my session variables and I have created a simple logout script which can be seen below however I am getting the error message: "Warning: Trying to destroy uninitialized session in /test/cgi-bin/file/logout.php on line 2"

Any ideas where I have went wrong? Thanks.

[code]

<?php
session_destroy();
header("location:back.php")
?>


[/code]
Link to comment
https://forums.phpfreaks.com/topic/27593-logout-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.