Hi,
For some reason I've having problems reading this session variable within an ajax document, I've got this inside online.php:
` session_start();
if (isset($_SESSION['username'])) { $username = $_SESSION['username']; } `
For some Reason this is not setting username even when the session var is being used on the host page, i call on the php file every second using this
` $(document).ready(function() {
var refreshId = setInterval(function() { $('#timeval').load('online.php'); }, 1000);
$("#stop").click(function() { clearInterval(refreshId); }); }); `
Am I doing something wrong, or is this not even possible?? Any advice would really help thanks alot!