PDA

View Full Version : session missing


briansol
09-11-2008, 06:11 PM
Many url's have the session parameter missing.

ie,


if ($vba_options['links_navbarhomelink'])
{
$navbits["$vba_options[links_homeurl]/index.php"] = $vba_options['links_title'];
}


should be

removed


A non-cookied user visiting the forums, reads a couple threads, then the links, then goes back to the forums, etc will lose their session of what they've read already.

Brian
09-12-2008, 12:20 PM
Thanks for pointing that out. I've removed your code above though since the session variable you were using would put the session right after '.php' in the filename (with no '?') and result in a broken link for any URL's that contain the session. Here's the correct code:
if (THIS_SCRIPT != 'links_index' AND $vba_options['links_navbarhomelink'])
{
$navbits[$vba_options['links_homeurl'] . '/index.php' . $vbulletin->session->vars['sessionurl_q']] = $vba_options['links_title'];
}

Our Sponsors
 

briansol
10-07-2008, 02:08 AM
There's a bunch more than just this one. I was merely pointing it out.