Logout Button In Funmobile

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Logout Button In Funmobile

    Hi everybody!

    I wanna know if sum1 here has an idea for making this little simple button...

    I was thinking to do sumtin like that, but im not sure if it is correct (i dont know very much about scripts):

    Code:
    [url="logout.php"]Logout[/url]
    OR

    Code:
    exit;
    clearcookies;
    Can you help me? [I think all's wrong...]

    #2
    Code:
    echo "<a href=\"index.php?action=out\">Logout</a>";
    in the logout action do this
    Code:
    @mysql_query("DELETE FROM ibwf_sessions WHERE id=&#39;".$ses."&#39;"); 
    @mysql_query("DELETE FROM ibwf_online WHERE userid=&#39;".getuid_ses($ses)."&#39;");
    
    echo "You have logged out";

    Comment


      #3
      Many thanks wizard!!

      I havent tried it, but im sure it will works, because youre a scripting genius...

      Thanks again!!

      Comment

      Working...
      X