Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [logout]

The tag has no usage guidance.

0
votes
1answer
12 views

Magento 2 logout using curl

As per my requirement i want to logout the customer using PHP curl. for that I used the following code in my custom controller action(execute) $lastCustomerId = $this->_customerSession->getId()...
0
votes
0answers
94 views

magento 2 logout customer after successful registration works only first time

I have implemented this logic to logout customer after registration, Its only working before logging in a new user. After clearing cache and when I register a user it logout the user and for second ...
0
votes
2answers
274 views

magento 2 logout customer after successful registration

I need to logout the user after successful registration. How can I achieve this, Is there a admin settings in backend to do this.
0
votes
2answers
159 views

Magento 2 Logout after Registration

I need to logout a user after successful registration to login page. I tried to redirect the user after registration by creating a observer customer_register_success but it dint work, When the ...
0
votes
0answers
28 views

controller_action_predispatch is not observing after logout

I am performing a logout function if user is not approved. So I created observer controller_action_predispatch which will trigger in all pages so that it will check the approval if not it will logout ...
1
vote
0answers
367 views

Uncaught Exception: Warning: SessionHandler::open(): Cannot call session save handler in a recursive manner

I move my magento project from localhost to shared server. Now since mod_version was not installed and the hosting provider said that enabling the module was not covered of the plan. So I followed the ...
0
votes
0answers
74 views

Delete custom cookie in logout observer not working

I have an observer which is triggered properly on customer logout. The observer's execute method looks like this: public function execute(\Magento\Framework\Event\Observer $observer) { $this-&...
4
votes
1answer
226 views

Add to cart not working in Magento 1.9

I have same issue in Magento 1.9 i'm using magento 1.9.3.2 Login to a customer accounts Try to add something to the shopping cart and place an order After order is saved go back to store and try to ...
1
vote
1answer
305 views

How to remove logout page

How to remove logout page 5 seconds when logout after?please help using magento 2.2.4. thank you!
3
votes
0answers
76 views

After logout, customer name still shows in header beside Sign In link

The login user session is expired but in the header, the customer username is showing as logged in. Please help me to resolve this.
5
votes
3answers
903 views

Magento 2.2.4 Customer are unable to logout

i´ve just installed a fresh Magento2 on my webspace to prepare the migration of my Magento 1.9. I installed my theme (Infortis) and created my products and did the first test-salse. Everything fine......
0
votes
0answers
108 views

After logout, customer name still shows in header

In my project I integrated magento 2 and codeigniter. After Login from Magento I can access codeigniter also. I saved the session into a file. when I logout from codeigniter I will re-write the ...
3
votes
0answers
31 views

Magento 2 : There is Different Class for When User Logs Out Due to Inactivity

I need to redirect customer to a different URL when is logged out automaticly. I made a prefence for Magento\Customer\Controller\Account\Logout but it looks like, when the customer is logged out due ...
2
votes
2answers
2k views

Magento 2.2 keep logging out

My magento installation is keep logging out when login with admin account. Sometimes 3 mins, some times 10 mins. After log in, it shows: All other open sessions for this account were terminated....
0
votes
1answer
903 views

Change logout redirect link to external page

After logging out from the account the user is redirected to a page that redirects to the CMS home page of magento. I don't have that page and want to redirect to an external page instead. But I can't ...
0
votes
1answer
686 views

How to put log in and log out option in header beside cart in magento?

I wants to change My Account to Log in Button in header beside cart option. when user made log in then it should show log out option in header. Please tell me the code with path.
1
vote
0answers
88 views

Magento 2 : How to Debug Which Extension is Causing Early Session Timeout or Logout of Admin

I have a problem in admin section where I frequently get logged out at random intervals of time. One thing that I am assured is that one of my extension is causing trouble but I could not find way to ...
4
votes
1answer
3k views

Magento 2: Force Sign-In not working

I'm already logged in the frontend of my website. Then I go to Admin -> Customers -> Edit My Customer & Click on Force Sign-In It gives below error This customer has no tokens. The user ...
1
vote
1answer
150 views

No items in shopping cart, but actually there is

After I added an item in the shopping cart, and I logged-out. When I log-in again, there's no item in the shopping cart. However, once I add another item in the cart, the previous one is shown ...
0
votes
2answers
138 views

Admin logged out if autocomplete used in order create

We are getting logged out in the backend at sales > order > create if we use browser autocomplete in the billing address fields. To be more specific the loadBlock action returns ajaxExpired with and ...
2
votes
1answer
854 views

Logout customer when the browser is closed

In default Magento 2.0.7: A customer is logged in, closes the browser, reopens the browser and he is still logged in. But I would like to log out the customer when he closes the browser. He should ...
0
votes
1answer
226 views

Magento check if customer logged in multistore

I have Magento 1.9.2.4 CE installed in one of my client's site which is multistore site. Now I have following code in header file for checking whether a customer is logged in or not using session ...
1
vote
1answer
586 views

How to redirect from observer in after logout in Magento 2?

I have created an observer for customer_logout event and on its observer, I want to redirect the customer to a specific page. how can be done ? In Magento1.9.x as $observer->getControllerAction(...
2
votes
1answer
3k views

How to logout customer

I am trying to logout user I used following code <?php require_once 'app/Mage.php'; Mage::app(); Mage::getSingleton('customer/session')->logout(); ?> But it's not working Please help me ...
0
votes
1answer
266 views

Editing TopLinks via local.xml - changing LogOut and LogIn based on <customer_logged_in>

I can't seem to get Magento to react to the customer_logged_in or customer_logged_out tags in local.xml The LogOut link does not display unless I remove the customer_logged_in tag then the link ...
7
votes
1answer
1k views

How to stay logged into Magento 2.0 longer

Magento 2.0.2 seems to log me out after 5 or so minutes of inactivity. Is there a setting to keep me logged into the Admin backend longer? If so, where and how?
2
votes
1answer
2k views

Magento2: Custom Logout Observer with redirection

I'm implementing a SSO extension for Magento2. Right now I want to add an observer to the customer_logout event in order to execute a redirection to my custom logout endpoint. I followed what is ...
3
votes
2answers
1k views

Remove logout page

Is it possible to bypass the logout page in Magento. I don't want to show the logout success page, want to show the current page
5
votes
2answers
1k views

Force log out of backend sessions?

I shared an administrator account with a 3rd party solution provider to debug one of the extensions installed in our store. Now that the problem is fixed I changed the account password. However this ...
1
vote
1answer
4k views

Get logo url & alt in topmenu

so I'm trying to add the logo to the topmenu.phtml but <?php echo $this->getLogoSrc() ?>, and <?php echo $this->getLogoAlt() ?> don't work (they return null/nothing) Is there a way ...
0
votes
2answers
2k views

Logout by programming from observer in magento 2

How to logout from customer session by programming from observer in magento 2?
1
vote
1answer
2k views

Change logout url link for some phtml pages

There is "Logout" link all over the site. If we click on Logout, it will redirect to this page. http://sitename/customer/account/logoutSuccess/ but in some phtml pages for example , in below page ...
2
votes
1answer
779 views

redirect logout to phtml page instead of logging out

Log out option will be there in entire site and if we click on "LOg out". it will log out the customer from the site. but for some reason, if i click on log out , it should redirect to some link. ...
0
votes
2answers
2k views

remove My account and Logout links from some phtml pages

i have to remove "My account" & "Log out" links from some phtml pages. for removing my account, i am using following code : <marketplace_marketplaceaccount_myproductslist> <reference ...
0
votes
2answers
2k views

Can we login+logout Magento admin programmatically by PHP script only

Can we login+logout Magento admin by simple PHP code which presents outside Magento setup. I need this functionality because my requirement only full fills by this scenario only. mywebsite.com/...
1
vote
4answers
4k views

Magento Logout reload same page

Is it possible to reload same page on successful logout in magento. Currently it will redirect to home page after redirecting to the page that says you will be redirected to home page in 5 secs. This ...
2
votes
0answers
48 views

Customer is active even after session deleted

I have a simple service, SOAP API, to log out customer based on his email ID. This service is getting parameter properly and even the respective user session is deleted. I have confirmed this using ...
1
vote
2answers
3k views

How to get Customer Login and Logout outside Magento

Hereby, I working to integrating Header/Footer section outside Magento using this sample code: $mageFilename = 'app/Mage.php'; echo $mageFilename; require_once $mageFilename; #Mage::...
0
votes
1answer
3k views

Session and cookies are not removing in Magento

I am trying to set the cookie on user login basis and want to empty on logout. Login working perfect but logout didn't work. For that purpose I used this XML code : <customer_logout> &...
1
vote
1answer
4k views

After login, there isnt log out option in front end

For some reason after upgrading to 1.9.1 or maybe before when visitors logging in they can't logout www.newtech.co.uk Any help will be appreciated
1
vote
2answers
4k views

Customize Welcome Message Magento 1.9

Hi i want to customise my welcome message like this: "hi visitor, welcome to %storename%! Log in or register." but i don't know how i should include the login link, because if you logged in, the ...
3
votes
2answers
2k views

Why does Magento (appear to) log out administrative users?

When carrying out a couple of specific (but seemingly unrelated) administrative tasks (see below for details), Magento (1.9.0.1) appears to log out the administrative user, presenting them with the ...
1
vote
1answer
644 views

Permanent Login until click Logout

On Amazon, I don't have to type login ID & password info whenever I visit the amazon so I can shop instantly but on our Magento site, customer have to login every time they visit after close the ...
4
votes
0answers
178 views

Admin logout warning [closed]

Is there a way that I can warn admin users that they will be logged out after a set period of time. EG 60 seconds before the session is timed out and forcing the admin user to login it pops up a ...
1
vote
0answers
133 views

Including top links(login/logout sign up under Account as dropdown select values) [closed]

subject :—- Including top links(login/logout sign up under Account as dropdown select values) I want to add login signup and login/out options inside account i.e account as dropdown menu where login ,...
1
vote
3answers
2k views

Sessions folder is always empty?

I'm facing a strange issue which I cannot still figured out. When I logged in Magento admin panel and try to upload an image to a static block, Magento auto log-outs. Actually whenever I try to upload ...