> I am using php_flag session.auto_start 0 in an .htaccess file to stop > sessions from auto starting. It works on all but the one below, it still > auto starts. The session replaces linked style sheets on the page > through some links. Can anyone see the problems? > > session_start(); > if ( isset($_GET['style']) ) { > $_SESSION['style'] = $_GET['style']; > } elseif ( !isset($_SESSION['style']) ) { > $_SESSION['style'] = 'styles'; > }
You're calling session_start(), so of course the session is going to start, regardless of the auto_start setting. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php