Logout Button In Funmobile

Started on the old forum in November 2007 · view the original in the archive · old links redirect here

2 replies · 894 views · started 19 years ago · 1 min read

Guest #1

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):

[url="logout.php"]Logout[/url]

OR

exit;
clearcookies;

Can you help me? [I think all's wrong...]

wizard Senior · 493 posts #2
echo "<a href=\"index.php?action=out\">Logout</a>";

in the logout action do this

@mysql_query("DELETE FROM ibwf_sessions WHERE id='".$ses."'"); 
@mysql_query("DELETE FROM ibwf_online WHERE userid='".getuid_ses($ses)."'");

echo "You have logged out";

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close