Hi
Thanks for the reply. What I want to happen is when a user has registered and has a need to change their details is, they log in which takes them straight to their profile so they can update if necessary.
Once the profile has been updated I need a button next to the update button so they can log out and go to another page on the site.
Does this make sense??
Thanks
you can create a new logout page and add the following code at line 1L
<?php
if (!isset($_SESSION)) {
session_start();
}
?><?php
if ("" == ""){
// WA_ClearSession
$clearAll = TRUE;
$clearThese = explode(",","");
if($clearAll){
foreach ($_SESSION as $key => $value){
unset($_SESSION[$key]);
}
}
else{
foreach($clearThese as $value){
unset($_SESSION[$value]);
}
}
}
?>
this will log the user out.