Jump to content

Recommended Posts

When a User logs out, where should he/she be taken?

 

Before I added "member-only" areas, I would just drop people off wherever they were at, and maybe had a simple condition like this...

 

	if (isset($_SESSION['returnToPage']) && ($_SESSION['returnToPage'] == 'account/my_account.php')){
		$returnToPage = "/index.php";

	}else{
		$returnToPage = $_SESSION['returnToPage'];
	}

 

But now that my website has grown, there are lots of places Users can't be unless they are logged in.

 

The simple solution is to always re-direct people back to "index.php", but is that satisfactory from a UX standpoint?

 

 

Debbie

 

 

Link to comment
https://forums.phpfreaks.com/topic/265080-log-out-behavior/
Share on other sites

Content on your index page... e.g. news sites or forums. Of course you also have your members-only sites (like facebook)

 

Anyways I think it is kind of a moot point as Mahngiel pointed out. I too highly doubt a high percentage of users will logout just to go do more around the site. Most either navigate away to another site or login with different user credentials.

Link to comment
https://forums.phpfreaks.com/topic/265080-log-out-behavior/#findComment-1358580
Share on other sites

Content on your index page... e.g. news sites or forums. Of course you also have your members-only sites (like facebook)

 

Anyways I think it is kind of a moot point as Mahngiel pointed out. I too highly doubt a high percentage of users will logout just to go do more around the site. Most either navigate away to another site or login with different user credentials.

 

Valid point!!

 

I am leaning towards - consistent with the rest of the messaging on my website - displaying a message "You have successfully logged out" in the center of the page, and keep my usual Page Header and side bars in case they want to log in as someone else, or they do want to navigate somewhere else.

 

I think that combines what everyone has said above into a unified log-out solution.

 

Thanks,

 

 

Debbie

 

Link to comment
https://forums.phpfreaks.com/topic/265080-log-out-behavior/#findComment-1358613
Share on other sites

How about an index page with a login form on it? ;)

 

a la le facey-book. i mean really, what purpose do anon visitors have going to your index page?

 

think like your users, design for your users.

 

Facebook's index page IS their login page.  :)

 

I can think of cases of websites where users will log out to browse anonymously, though.

 

e.g., Real-estate listing sites - property owners may log out to see how their listing looks to others.

Link to comment
https://forums.phpfreaks.com/topic/265080-log-out-behavior/#findComment-1358771
Share on other sites

How about an index page with a login form on it? ;)

 

a la le facey-book. i mean really, what purpose do anon visitors have going to your index page?

 

think like your users, design for your users.

 

Facebook's index page IS their login page.  :)

 

I can think of cases of websites where users will log out to browse anonymously, though.

 

e.g., Real-estate listing sites - property owners may log out to see how their listing looks to others.

Sites like that should provide a "View Your Listing" link, just like LinkedIn does. I can view my profile as if I was anyone else looking at it, so I can see how it looks.

Link to comment
https://forums.phpfreaks.com/topic/265080-log-out-behavior/#findComment-1358789
Share on other sites

Sites like that should provide a "View Your Listing" link, just like LinkedIn does. I can view my profile as if I was anyone else looking at it, so I can see how it looks.

 

I completely agree. It's absolutely annoying to need to log out just to see your public profile/listing/whatever, only to learn you need to log back in to fix something.  :wtf:

Link to comment
https://forums.phpfreaks.com/topic/265080-log-out-behavior/#findComment-1358831
Share on other sites

Owners will log out anyway... they don't just want to "view their listings", they want to experience the whole process as a customer.

Haha, what the hell you talking about man? I think you've had too much 4th July juice.

 

Haha, I definitely had too much 4th juice, but regarding the above, I'm speaking from experience.

 

Edit: I see how the language was a little confusing, though... the company I work for has a Vacation Rental division.  The property owners (Owners) will often log out of their accounts to see how travelers (their customers) will experience the website.  That includes viewing listings, sending inquiries, communication, making payments, etc.  It's very common behavior in this specific instance.

Link to comment
https://forums.phpfreaks.com/topic/265080-log-out-behavior/#findComment-1359276
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.