For some reason my post id session is not carrying over to my grading script page. I grab the post_id from the posts url in my posts page and turn it into a $_SESSION to carry it to my grading script page. My $_SESSION that holds the logged in users id $_SESSION['user_id'] if logged in carries over to the grading script but not the post $_SESSION. How can I have my posts id carry over to my grading script page?
I have session_start(); at the top of both of my pages.
$_SESSION['post_id'] = $_GET['pid'];
Originally asked by: aatteot on Stack Overflow


Answers