daily pastebin goal
23%
SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. setcookie('idcourse', 'CourseID', 9999999999);
  2. setcookie('namecourse', 'CourseName', 9999999999);
  3. setcookie('id', 'ID', 9999999999);
  4.  
  5. if (isset($_POST['idcourse'])) {
  6.  
  7. $_SESSION['idcourse'] = $_POST['idcourse'];
  8.  
  9. }
  10.  
  11. if (isset($_POST['namecourse'])) {
  12.  
  13. $_SESSION['namecourse'] = $_POST['namecourse'];
  14.  
  15. }
  16.  
  17. if (isset($_POST['id'])) {
  18.  
  19. $_SESSION['id'] = $_POST['id'];
  20.  
  21. }
  22.    
  23. $inTwoMonths = 60 * 60 * 24 * 60 + time();
  24. setcookie('idcourse', 'CourseID', $inTwoMonths );
  25. setcookie('namecourse', 'CourseName', $inTwoMonths );
  26. setcookie('id', 'ID', $inTwoMonths );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top