close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error Message - Admin Logout in URSP

Thread began 10/10/2009 8:30 pm by Nature Photographer | Last modified 10/13/2009 10:08 am by Jason Byrnes | 2585 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" ); ?>
<?php
if(isset($_SESSION['AdminLogin'])) {
unset($_SESSION['AdminLogin']);
}
?>
<?php
if (!WA_Auth_RulePasses("Administrator")){
WA_Auth_RestrictAccess("users_LogIn.php");
}

?>

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
148/

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?


Cheers

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

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