umbrella_thing Posted July 20, 2006 Share Posted July 20, 2006 Simply.How do I get the session id ?I want to use it as a primary key in a table.. but .. I dont how to "get" it.. Its gotta be something totally simple right?Thanks dudes! Quote Link to comment https://forums.phpfreaks.com/topic/15109-a-very-simple-questioni-think/ Share on other sites More sharing options...
hvle Posted July 20, 2006 Share Posted July 20, 2006 $arr = explode('=', SID);echo "session id is " . $arr[1];//$arr[1] hold the session id Quote Link to comment https://forums.phpfreaks.com/topic/15109-a-very-simple-questioni-think/#findComment-60851 Share on other sites More sharing options...
umbrella_thing Posted July 20, 2006 Author Share Posted July 20, 2006 hmm this doesn't seem to work for me.. Quote Link to comment https://forums.phpfreaks.com/topic/15109-a-very-simple-questioni-think/#findComment-60855 Share on other sites More sharing options...
zq29 Posted July 20, 2006 Share Posted July 20, 2006 [code=php:0]echo session_id();[/code]Does that work? Quote Link to comment https://forums.phpfreaks.com/topic/15109-a-very-simple-questioni-think/#findComment-60861 Share on other sites More sharing options...
umbrella_thing Posted July 20, 2006 Author Share Posted July 20, 2006 yeah it does, at the same time I just found it on php.netahh thanks for that matey:) Quote Link to comment https://forums.phpfreaks.com/topic/15109-a-very-simple-questioni-think/#findComment-60863 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.