Skip to content

Instantly share code, notes, and snippets.

@steverobbins
Last active January 8, 2016 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steverobbins/ff67d5ac1c8b52d50d4d to your computer and use it in GitHub Desktop.
Save steverobbins/ff67d5ac1c8b52d50d4d to your computer and use it in GitHub Desktop.
<?php
ini_set('display_errors', 1);
session_save_path('tcp://127.0.0.1:11211?persistent=1&weight=2&timeout=10&retry_interval=10');
session_module_name('memcache');
session_start();
$sesTime = 'first time';
if (isset($_SESSION['memc_time'])) $sesTime = $_SESSION['memc_time'];
$nowTime = microtime(true);
var_dump($sesTime, $nowTime);
$_SESSION['memc_time'] = $nowTime;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment