sodascape Posted February 16, 2007 Share Posted February 16, 2007 I'm trying to create a session without a cookie (using PHPID)... I can't find a descent tutorial anywhere, I just need to know how to create it... simply... without the BS... and without Objects. Please help! Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted February 16, 2007 Share Posted February 16, 2007 Not sure what you're trying to accomplish...php by default uses a cookie to store the session id of a user. However if a user has cookies disabled it will pass the session id in the url. You may be able to change this default behavior in php.ini, or some other place, but I don't know where off hand. Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted February 16, 2007 Share Posted February 16, 2007 You may also want to look at the session_set_save_handler function http://www.php.net/session_set_save_handler Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted February 16, 2007 Share Posted February 16, 2007 After looking in the manual...of all places !!!...I found this: session.use_cookies boolean session.use_cookies specifies whether the module will use cookies to store the session id on the client side. Defaults to 1 (enabled). session.use_only_cookies boolean session.use_only_cookies specifies whether the module will only use cookies to store the session id on the client side. Enabling this setting prevents attacks involved passing session ids in URLs. This setting was added in PHP 4.3.0. Which is set in php.ini http://us2.php.net/manual/en/ref.session.php#ini.session.save-handler Quote Link to comment Share on other sites More sharing options...
sodascape Posted February 16, 2007 Author Share Posted February 16, 2007 no, advanced pHp shows you how to accomplish this without editing the php.ini . . . but i can't get it to work Quote Link to comment 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.