How to hide the Session_start notice print

Posted on 2003-11-28
Last Modified: 2008-02-20
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?
Question by:ecchymose
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

ashoooo earned 50 total points
ID: 9839222
Try @session_start()

Author Comment

ID: 9839257
Nice!  it works!

but what does the @ is doing exactly?

Expert Comment

ID: 9839391
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

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question