home *** CD-ROM | disk | FTP | other *** search
/ Orthodox Religion Class (2nd Semester) / ReligieCls1Sem2.iso / js / storage / MySessionStorage.js < prev   
Encoding:
Text File  |  2014-06-21  |  361 b   |  20 lines

  1. function MySessionStorage() {
  2. }
  3.  
  4. MySessionStorage.prototype.getItem = function(key) {
  5.     if(gd.isIe===true){
  6.         return $.cookie(key);
  7.     }else{
  8.         return sessionStorage.getItem(key);
  9.     }
  10. };
  11.  
  12. MySessionStorage.prototype.setItem = function(key, value) {
  13.     if(gd.isIe===true){
  14.         $.cookie(key, value);
  15.     }else{
  16.         sessionStorage.setItem(key, value);
  17.     }
  18. };
  19.  
  20.