The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
577 views

share login/logout sessions across two installs?

I'm having some issues sharing the user sessions across two installs. (a) site on http://stolenmx.com (b) site on http://arcade.stolenmx.com I have installed B in the same database as A and I have ...
1
vote
2answers
1k views

How do you log a user out with wp_logout?

I can get wp_logout to work, but not without generating lots of warnings ('PHP warning: Cannot modify header information - headers already sent'). wp_logout calls wp_clear_auth_cookie, which calls ...
0
votes
1answer
555 views

wp_logout action not working

I'm trying to remove some cookies set to control persistent login when the user specifically wants to log out of a website. I thought it would be as simple as: function remove_user_cookie() { ...
2
votes
2answers
14k views

How to log out without confirmation 'Do you really want to log out?"?

Right now when I log out via: <a href="<?php bloginfo('url'); ?>/wp-login.php?action=logout">Log out</a> it redirects me to the page where I need to confirm the log out. How to ...
4
votes
2answers
124 views

Logout URL performing strange

When I enter url : http://www.example.com/wp-login.php?action=logout it asks if you want to log out or not ? why does it happen where I am not logged in as a admin? If I run this url on ...
0
votes
0answers
31 views

Restrict acces to chosen pages

So i'm restricting access to a few pages based on some conditions: example: function restrict_wp_admin() { if (is_admin() AND !current_user_can('manage_options')) { global $wp_query; ...
0
votes
0answers
11 views

Logout via Subdomain, non-wordpress page on a different server?

Similar to the question over at Get wp_logout_url function to work on external (non-Wordpress) page The problem I am facing is the fact the subdomain is on a different server so I am unable to ...
0
votes
2answers
253 views

How change wordpress password without logout ( need for plugin )

I need change WP password without logout profile. When I use wp_set_password( $password, $user_ID ) i have problem with logout.
4
votes
2answers
102 views

Change “You are now logged out” text

I want to wrap <strong></strong> around the words "logged out": add_filter( 'gettext', 'wpse17709_gettext', 10, 2 ); function wpse17709_gettext( $custom_translation, $login_texts ) { ...
1
vote
1answer
42 views

Disconnect automattically after X minutes

I recently discovered that if I don't disconnect myself from WordPress, my session could last for more than a day. I wondered what could I do to set a maximum time of inactivity on the site, after ...
0
votes
0answers
20 views

Show push notification after logout

I need to push a notification after user logouts. This is my logout button: <a class="btn btn-default" href="<?php echo wp_logout_url('index.php'); ?>"> Logout </a> And after a ...
0
votes
0answers
75 views

set cookie before log out and after admin login

Hi I am new to wordpress. I had researched lot about this but didn't succeed. I want to set cookie value NULL before logout and custom value after admin logged in. So I put below code in ...
0
votes
2answers
133 views

Use wp_logout_url() in menu creation page

can anyone give me some idea about how I can use the value of wp_logout_url() within the menu creator page of wordpress? As the menu creation page doesn't support php I cannot just put echo ...
1
vote
1answer
164 views

What is difference between logout and switch off?

What is the difference between logout and switch off in wordpress 3.6 except below? 1.Logut - redirect to login screen of admin. 2.Switchoff - redirect to UI side.
0
votes
0answers
46 views

The issue with Site logout

My goal is get rid from using the Control Panel for simple users of my site. I try to solve the problem with the bug WordPress message "You are attempting to log out of (site name) Do you really ...
2
votes
1answer
171 views

Add a logout menu link [duplicate]

How can I add a logout link in my websites menu? Is there a PHP code or link that I can use to be able to do this? Thanks
2
votes
1answer
3k views

wp_logout Not Logging Me Out

Here is what I'm doing: wp_logout(); var_dump(is_user_logged_in()); var_dump returns: bool(true) Why is wp_logout() not logging me out?
0
votes
3answers
2k views

I keep getting logged out in Firefox

For some reason, tonight when I have gone to work on my Wordpress installation I firstly found myself logged out, even though there was a few cookies left in Firefox relating to the website and when ...
0
votes
1answer
147 views

How long do users stay logged in if they DON'T check remember me?

As the title states, I'm wondering how long users stay logged in if they don't check the "Remember Me" option. I've heard that if they DO check it, it keeps them logged in for 14 days. But what if ...
3
votes
1answer
820 views

Get wp_logout_url function to work on external (non-Wordpress) page

I have blog and forum, and I need to put wordpress external logout link. What files do I need to add to make wp_logout_url(); work? Thank you.
0
votes
2answers
99 views

Conditional redirection with logout

I've been asked to implement a custom redirection in WordPress. It seemed quite simple at first but I have no idea how to get it right. So much that I can't even get started with it. This is how it ...
0
votes
1answer
547 views

How to use wp-login.php page only for logout?

On my website I have removed wp-login.php to disable the login from default wordpress login window. Then I installed Social Login plugin, users are able to Login properly by using this plugin. But if ...
0
votes
1answer
53 views

Custom, conditional redirect on logout

I'd like to implement a custom logout function that only runs if the conditions are met. Instead it returns me to the homepage whether the conditions are true or not. Here's the code that should do ...
1
vote
2answers
70 views

Disallow second login session

I am trying to find a solution for 2 months now but unfortunately I came up with no results. I have a subscription based website which streams music. What customers basically buy is a "panel" where ...
0
votes
1answer
1k views

how to logout user on browser tab or window closes

How to logout a user when he closes the tab/window ? If no, it is possible to clear the session after specific time? How to do that?
2
votes
1answer
1k views

Destroy user sessions based on user ID

I want to programatically log a specific user out of our WordPress system based on their user ID much like the 'Log Out of All Sessions' button in the WordPress user editor section. How am I able to ...
1
vote
1answer
974 views

Preexisting login to change to logout link in sub menu

I am using twenty twelve with a child theme. I have a link in my primary nav menu where I have an link for “My Account” which has a sub menu with a “Login/Register” link that redirects to a modified ...
0
votes
1answer
301 views

Set Short Automatic Logout Time for One User

I am building sites where I secretly give authoring role capability to visitors by auto-logging them into a generic account; they never see the admin bar, and are prevented from seeing the dashboard ...
1
vote
2answers
1k views

Wordpress Nonce Issue for Ajax Login and Logout

I am using ajax to submit log in and log out credentials. The log in and log out forms are replaced with html returned by a successful response. No page loading is happening page content is loaded via ...
0
votes
0answers
87 views

Logging back into WordPress after logging out and having issues with 'loggedout=true' in redirect URL

I have custom login form that displays a logout link after a user has logged in. I'm running into an issue when clicking log out. Wordpress redirects the user to a url with the parameter ...
0
votes
1answer
584 views

wp_logout_url($redirect); is not working in wordpress

I am writing a simple WP plugin that could log the user in and out. As far as login is concerned its working good but I cannot log out, through my plugin. Logout doesn't work after I login. I have ...
0
votes
3answers
300 views

Wordpress Login/Logout Single Menu Only

I've written this login/logout for my functions.php in my wordpress theme. The problem is, it's showing a login/logout link in all menus both primary and secondary. Is there a way to get it to ...
2
votes
1answer
1k views

Custom Connect to Facebook, problem logging in/logging out

I am working on a custom function for login in my users via facebook. I started by reading this nice tutorial on how to login in via facebook: ...
1
vote
0answers
157 views

WordPress Multisite logout conflict

I have a WordPress Multisite setup with several sub sites. I am having an issue when logging out of one of the sub sites that leaves the user logged into the main site which was the entry point or ...
0
votes
0answers
214 views

Logout link not working

My logout link is not logging me out. May be I am missing something. I tried the below links which is generated by wp_logout_url(site_url()). But still I am logged in. ...
5
votes
1answer
6k views

How reduce wordpress login session timeout time?

I want to logout user autometically when user is idle for more than 10 minutes.That mean suppose user is logged in to a site and user didn't browse any pages for more than 10 mins.when he browse any ...
0
votes
1answer
884 views

LogOut button only if logged in in front end menu widget

I would like to add a "LogOut" button at the end of my sidemenu - but of course only, if someone is logged in. I also want to have it in two languages using qtranslate. At the moment I have created a ...
-1
votes
1answer
114 views

Wordpress Logout Redirect Follow up

You answered a logout redirect question for this guy a while ago, I implemented the code and it worked great, thanks! (http://wordpress.org/support/topic/wp-logout-page-redirect-to-homepage) My ...
1
vote
3answers
4k views

Redirect user after logout

I am trying to create an unsubscribe page for my members, but in order to see the unsubscribe form, they have to be logged out, so the first link is: ...
0
votes
0answers
327 views

Logging out gives 404 error

When I try to log out of my site, I'm taken to a 404 page, and the logout doesn't work. The url looks like this: ...
-1
votes
1answer
2k views

how to manage Session in Wordpress using custom login?

I am new to WordPress, i want to implement custom Login functionality using WordPress. I am using the following Code to create custom login, In wp.config file if( !session_id() ) { ...
1
vote
1answer
4k views

Logout user and delete cookies from the client side?

I'd like to be able to logout the user. I can do this by calling wp_logout() on the server but if the user drops connection is there a way to log them out? The wp_logout() method clears the cookies. ...
2
votes
2answers
2k views

wp_nav_menu log in/out link?

I have a wp_nav_menu showing pages, but I'd also like to include a log in/out link, based on the current state of the user, which will redirect them to the home page. I've looked far and wide, but ...
-1
votes
1answer
883 views

Need edit profile link in the menu for logged in users

I have a page called edit profile, i have installed the profile builder plugin,so the users can edit their profile from front end, if the user is logged in i want to show the edit profile and logout ...
0
votes
1answer
1k views

Add Login and logout buttons to top menu bar

I got this code to insert menu bar in the PRIMARY menubar, but I can not find a way to insert it into my secondary, or top menubar above the primary menu bar. Could anyone teach me how to do that? ...
0
votes
2answers
341 views

How to remove 'wordpress…' text from page titles in tabs

I am working on a site and sometimes I run into an error when logging out and on the site tab it says 'Wordpress Failure Notice'. I am trying to remove all instances of wordpress so users dont know Im ...
0
votes
0answers
79 views

after logout, get_current_user_id still holds value

I added a login, logout menu item to a menu with the following code in functions.php. After logout it redirects to the current page. But surprisingly enough, the get_current_user_id method still ...
0
votes
1answer
266 views

Logout issue with new Domain on WP Multisite

I'm using a multisite and I set my site up at parentsite.com/mysite. When the logout button was clicked it worked correctly and logged the users out and brought them back to the homepage. Here's what ...
0
votes
1answer
308 views

wp_logout_url isn't forwarding to correct link

I set my site up at parentsite.com/childsite. When the site was there my logout button worked correctly and logged the users out and brought them back to the homepage. Here's what the code was: <a ...
0
votes
2answers
3k views

How to redirect logged out users to specific page?

I have a question and a technical issue in wordpress. That is, i have a login form on my website to allow visitors to login to see special content. The question goes here, when the time they log in, i ...