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? 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? 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... 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? 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! Link to comment https://forums.phpfreaks.com/topic/143668-solved-session-question/#findComment-753816 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.