Skip to content

Instantly share code, notes, and snippets.

@gamerlv
Last active December 22, 2015 01:18
Show Gist options
  • Save gamerlv/6394955 to your computer and use it in GitHub Desktop.
Save gamerlv/6394955 to your computer and use it in GitHub Desktop.
<p>Test bestand voor aeriscraft php test</p>
<br />
<?php
session_start();
echo "<pre>";
var_dump(session_save_path(), is_writable(session_save_path()), $_SESSION);
echo "</pre>";
echo "<form><input type='text' name='testfield'/><input type='submit'/></form>";
if (isset($_GET['testfield'])){
$name = (isset($_GET['ses'])?$_GET['ses']:'sess_'.time());
$_SESSION[$name] = $_GET['testfield'];
}
phpinfo();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment