dennismonsewicz Posted February 3, 2009 Share Posted February 3, 2009 I am trying to pass a row id into the $_SESSION var and its not working... $session_id = $_SESSION[$row->post_id]; Is this possible? Quote Link to comment https://forums.phpfreaks.com/topic/143668-solved-session-question/ Share on other sites More sharing options...
pocobueno1388 Posted February 3, 2009 Share Posted February 3, 2009 Are you calling session_start() at the top of your script? Quote Link to comment https://forums.phpfreaks.com/topic/143668-solved-session-question/#findComment-753801 Share on other sites More sharing options...
dennismonsewicz Posted February 3, 2009 Author Share Posted February 3, 2009 yeah the file i am modifying is an include and the session_start(); is called in the main file... Quote Link to comment https://forums.phpfreaks.com/topic/143668-solved-session-question/#findComment-753803 Share on other sites More sharing options...
premiso Posted February 3, 2009 Share Posted February 3, 2009 $_SESSION['keyname'] = $row->post_id; Is that what you are after? Quote Link to comment https://forums.phpfreaks.com/topic/143668-solved-session-question/#findComment-753813 Share on other sites More sharing options...
dennismonsewicz Posted February 3, 2009 Author Share Posted February 3, 2009 i actually just added the premiso and it works! Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/143668-solved-session-question/#findComment-753816 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.