PHPSESSID always in URL (cookies enabled)
<p>I have a simple authentication script. It will compare posted data from login form to a database table users - if there´s succes I´ll start sesssion by:</p>

<pre><code>session_start();
$_SESSION['login'] = "1";
$_SESSION['user'] = $_POST["user"];
$_SESSION['admin'] = "1";
</code></pre>

<p>The problem is I always have session ID in URL (cookies are enabled). 
PHP.ini is set like that:</p>

<pre><code>session.use_cookie = 1
session.use_only_cookie = 0
session.use_trans_sid = 1
</code></pre>

<p>And I'm runing it on localhost.</p>

<p>I want my session to prefere getting session ID in cookie - if enabled. Getting session ID in URL shoul by used only if cookies are disabled. I´ve read that should behave like that automatically but it doesn´t.</p>
