Link to home
Start Free TrialLog in
Avatar of ecchymose
ecchymose

asked on

How to hide the Session_start notice print

A notice is printed saying "Session already started" because I'm doing a session_start() even though I have sessions autostart=1 in the php.ini file.

I would still like to see other kind of notices, but how could I hide this particular one?
ASKER CERTIFIED SOLUTION
Avatar of ashoooo
ashoooo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ecchymose
ecchymose

ASKER

Nice!  it works!

but what does the @ is doing exactly?
It hides the warning. Its not a good practice, but you can use it if you are sure it wont mess up the rest of your page. :)

Thanks for the points