View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Duplicate Session IDs? !

Thread began 6/04/2009 3:23 pm by Peterson Design Studio - jefferis | Last modified 6/05/2009 2:56 pm by Peterson Design Studio - jefferis | 1430 views | 8 replies

larsentim278054

Not exact same problem but same error message

Hi -

I am getting the same error message, ie. "Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/content/M/a/d/Madison1Forms/html/employee/Picnic_2008/index.php:1) in /home/content/M/a/d/Madison1Forms/html/WA_SecurityAssist/Helper_PHP.php on line 5"

and I've googled it and it says to make sure session start command is at the top, and it is. At least, this is what's at the top right now:

<?php require_once( "../../WA_SecurityAssist/Helper_PHP.php" ); ?>
And in that page - this is what is at the top of it:
<?php require_once( "HelperGroupsRulesPHP.php" ); ?>
<?php require_once( "Mail_PHP.php" ); ?>
<?php
if (!isset($_SESSION)) {
session_start();
}

And I've tried moveing these lines: <?php
if (!isset($_SESSION)) {
session_start();
}

above the others and it doesn't help.

Also - I'm not sure why but when using Security Assist - it shows all these pages (in the pages access manager thing) as needing to be a "USER" security - but not all of them have the php functions on top like (what I described above) - so some of those pages don't error out, and I thought I would be able to compare them to see where they're different, and it's because they don't have any user restrictions whatsoever - so of course theres no error message on some of them because there's no code to screw them up. I know this is confusing. So the first problem is that header error message on some of my pages and the other problem is that security assist is showing some pages that require the user to be a "registered USER" but it's not adding the necessary code - and no, they weren't open when I assigned it.

Thanks!

Originally Said By: Ray Borduin
  Add the session_start line to the top of the page, but add the rest below. That should prevent the error. You may also have to move the setcookie IF statement to the top.  

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...