PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

"Do You really want to logout?" page

s2Member Plugin. A Membership plugin for WordPress®.

"Do You really want to logout?" page

Postby mandyfeinstein » May 28th, 2010, 12:23 pm

Hi!
Everything works great so far, i was just wondering if there was someway to bypass the "Do You Really Want To Log Out?" page. I would like it to just log out and return to the page the user was on or even the home page. Thanks so much!
User avatar
mandyfeinstein
Registered User
Registered User
 
Posts: 1
Joined: May 28, 2010

Re: "Do You really want to logout?" page

Postby Jason Caldwell » June 23rd, 2010, 10:21 pm

Hi Mandy, this happens internally with WordPress. That screen is not triggered by s2Member, but by the WordPress core framework. The reason it happens is this.

If you supply a logout link, like this:
This will trigger that screen, because it does NOT include the "_wpnonce" key which verifies logout.
Code: Select all
http://mysite.com/wp-login.php?action=logout


The solution is to generate your logout link, like this:
<?php echo wp_logout_url(); ?>, which will produce something like this:
Code: Select all
http://mysite.com/wp-login.php?action=logout&_wpnonce=9b6fc1ed37
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron