acctman Posted August 26, 2008 Share Posted August 26, 2008 can anyone tell me why this is not working? what's suppose to happen is the session ID is added to the jpg filename.... and then in another script is should print out the ../temp/SESSION_ID.jpg <?php session_start(); $uploadreg = ('../temp/' . session_id() . '.jpg'); $_SESSION['reg_img'] = $uploadreg; ?> on another page <?php echo $_SESSION['reg_img']; ?> Link to comment https://forums.phpfreaks.com/topic/121480-solved-echo-session-data/ Share on other sites More sharing options...
DarkWater Posted August 26, 2008 Share Posted August 26, 2008 You need to include session_start(); on every page that uses sessions. Link to comment https://forums.phpfreaks.com/topic/121480-solved-echo-session-data/#findComment-626465 Share on other sites More sharing options...
acctman Posted August 26, 2008 Author Share Posted August 26, 2008 You need to include session_start(); on every page that uses sessions. thank you Link to comment https://forums.phpfreaks.com/topic/121480-solved-echo-session-data/#findComment-626480 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.