Help on this reload page issue

hiii,

my html page has a slider, on top. Its in js. I use the logout link from it to logout. Now i want to reload that page after logout…Please help

.js file says [which holds the logout link] -

[code]links: [
{
href: scriptLocation+‘log-out.php’,
text: ‘Log Out’

					}[/code]

log-out.php says-
[php]<?php

require_once(‘functions.php’);
logOut();

header('Location: '.$_SERVER[‘HTTP_REFERER’]);[/php]

and function.php says -

[php]function logOut()
{
setcookie(‘login’, ‘’, time()-3600);
setcookie(‘password’, ‘’, time()-3600);
}[/php]

Try replacing:

[php]header('Location: '.$_SERVER[‘HTTP_REFERER’]);[/php]

With:

[php]header(‘Location: page-you-want-to-redirect-to.php’);[/php]

Some browsers may not send the referrer or it may be being set incorrectly.

i dont know its name,

it will be the url like my code and it html,

now please guide me like that

Does your original code not work?

Sponsor our Newsletter | Privacy Policy | Terms of Service