peterg0123 Posted October 12, 2009 Share Posted October 12, 2009 Hi, Just a quick question about sessions. Why do some people pass the session id in the URL? Thanks Peter Quote Link to comment https://forums.phpfreaks.com/topic/177405-php-sessions/ Share on other sites More sharing options...
cags Posted October 12, 2009 Share Posted October 12, 2009 By default sessions use a cookie on the visitors computer to store the session_id, this will obviously only work if the visitor has cookies enabled. By storing the id in the URL cookies aren't required. Quote Link to comment https://forums.phpfreaks.com/topic/177405-php-sessions/#findComment-935377 Share on other sites More sharing options...
JonnoTheDev Posted October 12, 2009 Share Posted October 12, 2009 The php configuration will send the session id through the url if a cookie is not set or the option to use cookies is disabled. Look for: session.use_only_cookies = 1 session.name = PHPSESSID Quote Link to comment https://forums.phpfreaks.com/topic/177405-php-sessions/#findComment-935477 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.