close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Error Message - Admin Logout in URSP

Thread began 10/10/2009 11:30 pm by Nature Photographer | Last modified 10/13/2009 1:08 pm by Jason Byrnes | 1736 views | 4 replies |

Nature Photographer

Error Message - Admin Logout in URSP

Using your webassist instructions by Jason Byrnes and the following code;

<?php require_once( "../WA_Globals/WA_Globals.php" ); ?>
<?php require_once( "../WA_SecurityAssist/Helper_PHP.php" ); ?>
if(isset($_SESSION['AdminLogin'])) {
if (!WA_Auth_RulePasses("Administrator")){


about implimenting a Admin Logout I get the following error message when logging out;

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/jamesdoy/public_html/Registrations/Admin/admin_Logout.php:2) in /home/jamesdoy/public_html/Registrations/WA_SecurityAssist/Helper_PHP.php on line 5

Warning: Cannot modify header information - headers already sent by (output started at /home/jamesdoy/public_html/Registrations/Admin/admin_Logout.php:2) in /home/jamesdoy/public_html/Registrations/WA_SecurityAssist/Helper_PHP.php on line 67

It seems though I have been logged out but what's causing this error and how can I fix it?

Attached are the two files for your reference.

Thanks for your assistance.

Sign in to reply to this post

Dani Chankhour

php does not allow to have any spaces outside the php tags, so online 1,2,7 and 13 of your log out page, please remove the spaces that are after the "?>" tags.

Sign in to reply to this post

Office Guy-172461

Extra credit study

Solving the "headers already sent" problem

Sign in to reply to this post

Nature Photographer

Thanks Everyone

Thanks everyone that worked a treat....mind you it's hard to tell that there is a space there or not.

Is there something in DW CS4 which can be turned on so that it shows all the formatting, something like in MS Office which shows spaces and breaks etc?


Sign in to reply to this post

Jason ByrnesWebAssist

Yes, there is.

Go to View -> Code View Options -> Hidden Characters.

Sign in to reply to this post

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





Ease of use


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...