Jump to content


LOGOUT does not work

  • Please log in to reply
2 replies to this topic

#1 simonsays

  • Members
  • PipPip
  • Member
  • 21 posts

Posted 27 August 2006 - 06:43 PM

I have a little problem with logout in my script.
There is a small piece of code responsible for that.
if ((isset($_GET['logout'])) && ($_GET['logout']==1)) {
And there is a link in the logged user interface with 'logout=1' in its URL.However, when I click this link, the user interface seems to stay. And it is only gone when I click it the second time. What might be the problem?
Thank you in advance!

#2 .josh

  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 27 August 2006 - 06:54 PM

when you run those commands, it does not go into effect until the next time you run a script.  it will still be in effect for the rest of the script.  kinda like making a cookie.  you can't access it until after you go to some new page.  when i do a logout, i usually redirect to a new page, like the main page or something.
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#3 simonsays

  • Members
  • PipPip
  • Member
  • 21 posts

Posted 27 August 2006 - 06:58 PM


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users