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']; ?> Quote 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. Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/121480-solved-echo-session-data/#findComment-626480 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.