Skip to content

Instantly share code, notes, and snippets.

@riza
Forked from mucahit/class.session.php
Created July 9, 2014 23:13
Show Gist options
  • Select an option

  • Save riza/fbbe8fc349d5558d3a8c to your computer and use it in GitHub Desktop.

Select an option

Save riza/fbbe8fc349d5558d3a8c to your computer and use it in GitHub Desktop.
<?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;
}
}
}
?>
@riza
Copy link
Copy Markdown
Author

riza commented Jul 15, 2014

mücodan çaldım xDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment