happyhippy Posted September 7, 2011 Share Posted September 7, 2011 The $_Session has a url variable. Using a Dom how do I properly do: html->load($_SESSION['variable']) I was thinking about breaking down the session to retrieve the value inside but I don't know how. Quote Link to comment https://forums.phpfreaks.com/topic/246632-_session/ Share on other sites More sharing options...
premiso Posted September 7, 2011 Share Posted September 7, 2011 Did you call session_start on all the pages you are using session on before you set / retrieve a variable? Have you tried echoing out the variable to make sure it was populated correctly? The question is vague with hardly any details. We need more information to help you. Quote Link to comment https://forums.phpfreaks.com/topic/246632-_session/#findComment-1266487 Share on other sites More sharing options...
happyhippy Posted September 7, 2011 Author Share Posted September 7, 2011 Yes I used session_start() everything works with $_SESSION when I echo. the problem is I get blank screen when I try to pass the session in the load() or load_file(). I was thinking about breaking down the value in session then putting that value url string in a $variable then put that variable in load() but I do not know how to do that, how to break session down that way, perhaps someone here can direct me to the right information, I've looked everywhere on the net of how to do this. Is there anyway I could possible print the session out in the .php file, Not on the website? Thanks for responding, it's a tough question pretty advanced I know. Quote Link to comment https://forums.phpfreaks.com/topic/246632-_session/#findComment-1266504 Share on other sites More sharing options...
xyph Posted September 7, 2011 Share Posted September 7, 2011 We have absolutely no clue what $_SESSION['variable'] holds so we have absolutely no clue how to help you. My first suggestion is to make sure $_SESSION['variable'] holds what YOU expect it to. Quote Link to comment https://forums.phpfreaks.com/topic/246632-_session/#findComment-1266514 Share on other sites More sharing options...
happyhippy Posted September 7, 2011 Author Share Posted September 7, 2011 I already said it holds a url variable value string Quote Link to comment https://forums.phpfreaks.com/topic/246632-_session/#findComment-1266544 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.