Jump to content

questorfla

New Members
  • Posts

    1
  • Joined

  • Last visited

questorfla's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. In the code for a website we use, the logout sequence in class.inc.php is set to destroy the current session but leave the user on the existing URL. Below is the logout code in the class.inc.php. Everything works and the normal function would be to exit on the starting login page and wait for them to login again. I need to change the redirect to take the User to our Main page rather than staying on the URL where they logged out. I am not familiar with PHP But I think if i edited the current redirect line to send the user to the new location it should do it. If anyone could tell me where to add the 'http://www.newsite.com' address I would appreciate it. function logout() { $_SESSION["user_id"] = null; $_SESSION["user_role"] = "Visitor"; session_destroy(); redirect("$_SERVER[php_SELF]?interface=login; return true;
×
×
  • 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.