Show DevBest Logout script

Status
Not open for further replies.

Integers

Soon to be Developer!
Sep 22, 2012
119
7
My first script extremely simple but its for people who don't know how to do it
Code:
<?php
session_start();
session_destroy();
header('Location: (where you want to redirect to)');
?>
 

Khalil

IDK
Dec 6, 2011
1,642
786
You know that a "noob" in php, knows how to do this ?
My grandma can do it, and she's dead.
anyways, i love to see you participating in this section.
 

Weasel

👄 I'd intercept me
Nov 25, 2011
4,135
2,459
You know that a "noob" in php, knows how to do this ?
My grandma can do it, and she's dead.
anyways, i love to see you participating in this section.

Well I highly doubt my mother will know that... so please don't overstate...

On-top:
However that this is easy, still usefull for people who don't know anything about PHP.
 

Integers

Soon to be Developer!
Sep 22, 2012
119
7
Thanks, Im trying to learn php. So I cannot post any good scripts
 

Markshall

Русский Стандарт
Contributor
Dec 18, 2010
2,638
2,393
What is they're not using sessions? This is what I use for destroying cookies:

PHP:
setcookie("username", "", time()+60*60*24*5);

Just set the value of the cookie to nothing.
 

Khalil

IDK
Dec 6, 2011
1,642
786
What is they're not using sessions? This is what I use for destroying cookies:

PHP:
setcookie("username", "", time()+60*60*24*5);

Just set the value of the cookie to nothing.

There is nothing that has to do cookies in there mark.
 
Status
Not open for further replies.

Users who are viewing this thread

Top