function redirect($url){
header("HTTP/1.1 303 See Other");
header("Location: $url");
exit();
}
I have the function called when certain input buttons are clicked.
The session is set on every page, and it IS passed if the the button is clicked within 5 minutes. But the session is lost after about 5 minutes if the button is clicked.
If I refresh the page (not redirect) the session is not lost, so I'm pretty sure it's not a timeout issue. What could be causing this?