close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Admin in User Registration Solution Pack

Thread began 8/19/2009 10:55 am by michaelf0199272 | Last modified 9/30/2009 10:01 pm by michaelf0199272 | 6612 views | 19 replies |

michaelf0199272

Admin in User Registration Solution Pack

Q: Is there a logout page for the Admin portion of the User Registration Solution Pack?

This is because -- I triead to associate users_LogOut.php with it it did not seem to have any effect -- session still tayed active.


Q2: Does anyone have an input as to how best to effect a good logout on the Admin portion of the User Registration Solution Pack ?

Sign in to reply to this post

Jason ByrnesWebAssist

in the Admin Directory, you can create a logout.php file.

and add the following code:

php:
<?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");
}

?>
Sign in to reply to this post

michaelf0199272

Many thanks. I will try it out sometimes tonight.


Once again, thank you.


Michael

Sign in to reply to this post

eaw500250991

This post has been deleted.

michaelf0199272

Originally Said By: Jason Byrnes
  in the Admin Directory, you can create a logout.php file.

and add the following code:
php:
<?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 <-- This line 7
if (!WA_Auth_RulePasses("Administrator")){
    
WA_Auth_RestrictAccess("users_LogIn.php");
}

?>
  






When I tried the codes provided on a logout page -- below is the error message that I got.

"Parse error: syntax error, unexpected '<' in /misc/39/000/158/672/0/user/web/africanregister.info/Admin/admin_LogOut.php on line 7"


.
.
.<?php <-- This line 7
if (!WA_Auth_RulePasses("Administrator")){
WA_Auth_RestrictAccess("users_LogIn.php");
}

Sign in to reply to this post

Jason ByrnesWebAssist

Sorry, the code had a slight syntax error, use this code:

php:
<?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");
}

?>
Sign in to reply to this post

michaelf0199272

I will try it out later this evening -- when I looked at the codes it seem the difference is " ;" instead of just ";".


Thanks,

Michael

Sign in to reply to this post

Jason ByrnesWebAssist

No, the diferance is the closing php tag at line 6:

original: line 6 and 7:

php:
}

<?php




New: line 5, 6 and 7:

php:
}

?>
<?php
Sign in to reply to this post

michaelf0199272

I am still getting errors -- please see the error below.

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /misc/39/000/158/672/0/user/web/africanregister.info/Admin/admin_LogOut.php:2) in /misc/39/000/158/672/0/user/web/africanregister.info/WA_SecurityAssist/Helper_PHP.php on line 5

Warning: Cannot modify header information - headers already sent by (output started at /misc/39/000/158/672/0/user/web/africanregister.info/Admin/admin_LogOut.php:2) in /misc/39/000/158/672/0/user/web/africanregister.info/WA_SecurityAssist/Helper_PHP.php on line 67

Sign in to reply to this post

Jason ByrnesWebAssist

make sure there are no blank spaces after the closing php tags, for example:
"<?php require_once( "../WA_Globals/WA_Globals.php" ); ?> "

or:
"<?php require_once( "../WA_SecurityAssist/Helper_PHP.php" ); ?> "


also make sure there are no blanlines between php code blocks such as:
"<?php require_once( "../WA_Globals/WA_Globals.php" ); ?>

<?php require_once( "../WA_SecurityAssist/Helper_PHP.php" ); ?>"


If you are still having problems send a copy of the page so I can examine the code.

Sign in to reply to this post
loading

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