I donโt think it is too much to ask your users to enable cookies. I find it stupid when people turn them off completely.
Otherwise, you can set session.use_only_cookies to "0" to force the session id to be added to the URLs inside your php. However, this approach has several feedbacks. Basically, it is saving state in the URL, unlike the Cookie header. If the user had to copy and paste the URL of the page on which they were, and someone else had to click on it, they would both use the same session.
<?php ini_set("session.use_cookies", 0); ini_set("session.use_only_cookies", 0); ini_set("session.use_trans_sid", 1); ini_set("session.cache_limiter", ""); session_start();
PureForm Sep 18 '10 at 8:14 2010-09-18 08:14
source share