close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

User and Admin Logout?

Thread began 1/15/2010 2:34 pm by woodenboat | Last modified 4/20/2010 5:45 pm by woodenboat | 3875 views | 26 replies

Eric Mittman

In the User Registration Solution Pack there is a users logout page. On this page it does two things. The first thing it does is check to see if you are logged in, if you are not you will be redirected to the login page.

The next thing that this page does is clear out the session variables. It is the session variables that determine if you are logged in or not. If you are logged in you should have your userID held in a session variable. Your access rules should be based on the values of session variables.

Are you browsing to the users logout page? If so you should be logged out at this point. As a test of what is occurring after you visit this page you can print out the entire session by adding this code into the top of the pages you are testing this with:

php:
<?php

if(!session_id()) session_start();
print(
"<pre>");
var_dump($_SESSION);
print(
"</pre>");
?>



After you go to the users logout page and visit any page with this code on it you should be able to see that there are no session values. If you see that there are session values present then they must be getting set from somewhere after you visit the users logout page, or they are not being deleted properly. Please post back with the results that you get so we can check on this some more.

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