Hi , I m working on site which does not allow me to initialize session i-e whenever i write session_start(); the page does not load ?????
Do you output anything before you use session_start(); ? Including any whitespace? session_start(); needs to be at the top of your file before anything.
It doesnt mean that its written on first line check out the whitespace before it or check before starting session u r not sending any header information. i.e header("location....");
or just copy the commands you use to initialize the sessions. you can just make a simple test to check if it's working... session_start(); $_SESSION['test']='It is working'; echo $_SESSION['test']; if this doesn't work... then you maybe have something configured in your http server wrong (apache or lighttpd)... like the temp directory for sessions has not the right permissions, etc.
I uploaded it on the live server and here is the error Warning: ini_set() [function.ini-set]: A session is active. You cannot change the session module's ini settings at this time in /home/content/g/o/t/gotbeatz/html/sign-up.php on line 3 Line 3 : ini_set('session.use_trans_sid', '0');
Well the error means that you already have a current session open on that browser and thus you can't change the ini setting.