update_session.php 303 B

123456789101112131415161718
  1. <?php
  2. include 'functions.php';
  3. session_start();
  4. $saloon = get_post_var("saloon");
  5. $_SESSION['saloon'] = $saloon;
  6. $session = get_post_var("session");
  7. // Retourne le timestamp UNIX actuel
  8. $session['last_update'] = time();
  9. file_lock_and_update_session(get_session_file_path($saloon), $session);
  10. ?>