-
-
Save riza/fbbe8fc349d5558d3a8c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class sess | |
{ | |
public static function create($array){ | |
foreach ($array as $key => $value) { | |
#create session | |
$_SESSION[$key] = $value; | |
} | |
} | |
public static function delete(){ | |
#delete session | |
session_destroy(); | |
} | |
public static function session($name){ | |
if(@$_SESSION[$name]){ | |
return $_SESSION[$name]; | |
}else{ | |
return false; | |
} | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mücodan çaldım xDE