Hi i'm trying to get the value in session in my get method,actually value is there but its throwing an error that undefined $_SESSION variable as i'm returning value in this get method,so code is not executing furher.Please help1
<?php
class Session {
public static function init() {
session_start();
}
public static function set($key, $value) {
$_SESSION[$key] = $value;
}
public static function get($key) {
return $_SESSSION[$key];
}
public static function destroy() {
//unset($_SESSION);
session_destroy();
}
}?>