Jump to content

Link triggering a function


smc

Recommended Posts

Hiya,

Basically I'm trying to achieve a logout button

Now say I make a function like this

[code=php:0]
function logout(){
    session_destroy();
}
[/code]

How can I incorporate that into a link so when I click on it it ends the session?

Thanks a billion, you guys are very helpful! I can't even fathom how much PHP I've learned in the past 24 hours
Link to comment
https://forums.phpfreaks.com/topic/35144-link-triggering-a-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.