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 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. 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 Link to comment https://forums.phpfreaks.com/topic/177405-php-sessions/#findComment-935477 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.