Forum Moderators: coopster
$_SESSION['user_id'] = 'MyID';
then checking if this is set on the next page.
However the second page I visit on the site sometimes has the PHPSESSID appended to the URL, sometimes not.
My hosting company has session.use_trans_sid set to ON. So do I need to explicitly disable it to use cookies?
(2) The URL of the pages changes to having an extra '/' when I redirect by sending a HTTP header. I do
header("Location: ["...] . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/" . $filename);
www.example.co.uk//login.php
I'm wondering if it has something to do with magic quotes being On (they are on on this system). Or perhaps because there is no extra directory - does the dirname() function just return a slash?
[edited by: jatar_k at 5:36 pm (utc) on June 24, 2004]
[edit reason] no personal urls thanks [/edit]