All Questions
Tagged with customer-account customer-session
34 questions
0
votes
1
answer
854
views
magento 2.4 customer login time increase up to 1 year or more
i want to my customer login time increase when he is one time logged in after when he/she open browser it must logged in
and i have below settings increased but not affecting in my store
Go to System &...
0
votes
0
answers
697
views
Magento 2.4 Customer Login - Refresh page
I'm running into an issue on a Magento 2.4 website with 2 websites ( the one is on a seperate subdomain ).
Some customers cant login using their credentials, the page just reloads without any errors.
...
1
vote
1
answer
3k
views
Magento 2 - Increase customer session timeout for inactivity
Customer gets logged out after 30 mins of inactivity. I want to increase it to 1 hour. Any idea how to that?
1
vote
4
answers
668
views
Magento 2.3.2 How to redirect customer on login page if he hit custom customer dashboard link in browser without login?
I have created customer dashboard custom tab and the path is 'inquiry/customer/' which is working fine.
Issue is that If the user hit the direct that url in the browser without login in his account ...
0
votes
3
answers
383
views
Magento 2 How to get customer info on resetpasswordpost controller?
Magento 2 How to get customer info on customer/account/resetpasswordpost controller?
I am trying this code -
echo "<pre>";
print_r($this->session->getData());
and getting this response ...
0
votes
1
answer
437
views
Tax/VAT field configuration is not working on multistore Magento2 Core
I have a multistory website as Retail-Website and Wholesale-Website
Configuration with fresh Magneto2.2 at Store >> Configuration >> Customer Configuration >> Show Tax/VAT Number
Retail-Website
...
1
vote
1
answer
403
views
Customer not able to login and place order
I was looking for solution to my problem.
We are using Magento 2.2.3 version and one of our customer facing problem when he logged in, His not able to purchase due session destroying every time he ...
0
votes
1
answer
679
views
Magento 2 validate customer session with extra parameters
I have implemented Two factor authentication for customers.
So customer logins from frontend and if they have entered login details correct then they will be redirected to our two factor ...
2
votes
2
answers
13k
views
Magento 2 - How to get logged in user email id using customer session
I'm using Magento 2.2.6, How can I get the email ID of logged in user to show in header.
Thanks.
1
vote
1
answer
445
views
Fatal error in Constructor controller in Magento 2
I am creating sub user for current logged in customer
below is my controller code
use Magento\Framework\App\Action;
use Magento\Framework\Exception\NotFoundException;
use Magento\Framework\...
0
votes
2
answers
64
views
Get current customer collection in custom account navigation link
I have created the custom link in customer account left navigation. I am successfully created it.
I am trying to get current customer Data in template file. I am getting 500 server error. Below is ...
0
votes
1
answer
410
views
Magento 2: How to manage simple user (customer) login session for different device?
Using Magento 2.2, I need to allow customer login only one device at a time. Ex. if the customer is already logged in the computer, but user tries to log in with a smartphone, the Magento will ...
0
votes
1
answer
641
views
On customer register got an error message: "Cannot save the customer"
Couple of hours ago the registration worked well. Suddenly it is not working anymore. Reverted back my code changes and the problem still persists. What I've only done is to clear the cache. To get a ...
0
votes
0
answers
318
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 ...
0
votes
1
answer
92
views
Magento 1.9 - Customers can't login to frontend [Page refreshes]
Customers can't log into the frontend of the site after development.
The two test customers we used to test the site before the migration can login to the site perfectly but every other customer can'...
0
votes
1
answer
1k
views
How to add customer Id in table Magento 2
This is my code but I can't get the customer Id that's currently logged in.
public function checkotp(){
//db connection
$this->_resources = \Magento\Framework\App\ObjectManager::...
1
vote
1
answer
35
views
Magento 1.9.3 Sign Up front end dosnt work !URGENT PLEASE
we have this problem
customer cant sign up new account in front end
i have insert in all register.phtml the formkey code but no way thats work
Please help me :-( i dont find solution
1
vote
3
answers
9k
views
magento 2 programatically get cart items of customer using customer id?
protected $quoteFactory;
protected $quoteModel;
public function __construct(
...
\Magento\Quote\Model\QuoteFactory $quoteFactory,
\Magento\Quote\Model\ResourceModel\Quote $quoteModel
...
1
vote
1
answer
195
views
magento 1.14 customer login hangs on some accounts
I am looking for an answer for this weird issue but can't find anything that helps.
I have magento enterprise edition 1.14.0.1 and some customers aren't able to login into their account area for ...
2
votes
1
answer
673
views
Show customer name after setCustomerAsLoggedIn()
I'm experiencing terrible issue with M2 2.1.4.
I'm creating new user programmatically (without any issues) and then immediatelly I'm doing setCustomerAsLoggedIn():
/* Magento\Customer\Model\...
2
votes
0
answers
238
views
Cross-Domain Session sharing is not working Magento 1.9.2
I have 2 stores set up in two different domain names in one Magento Installation. I have enabled the SID on Frontend to share the session between the two stores using SID as an Url parameter. But it ...
3
votes
2
answers
979
views
Customer can not login created by admin
I have installed fresh installtion of magento 1.9.2.2
I have created group in customer group.
If I add any customer to that group using admin panel, and tries to login from frontend in different ...
0
votes
1
answer
1k
views
customer_save_after and customer_register_success event in custom observer customer session is blank in mycustom fuction?
This is my observer function for customer_register_success and customer_save_after event it execute my custom url but i m getting blank session
$customerData = Mage::getSingleton('customer/session')-...
3
votes
1
answer
3k
views
I don't want magento Frontend Customers Session to log out Automatically except they logout it manually
If My Website Frontend Customers once login (Not Backend Admin Users), they should not be logged out Automatically. If they manually logout Then only it should be logged out.
I want this because if ...
2
votes
0
answers
747
views
Magento 2 Account Sharing issue
I am trying to setup account sharing globally on our Magento 2 installation.
The setting, under STORES-> Configuration-> Customers-> Customer Configuration, for Account Sharing Options is set to ...
0
votes
0
answers
36
views
Customer Login issue [duplicate]
I have magento multi (multiwebsite) store like www.example.com and customer login is working fine here.
My other store Url is shop.example.com and when customer try to login after registration on ...
80
votes
22
answers
140k
views
How to check if customer is logged in or not?
How to find if a customer is logged in or not in Magento 2.
If the customer is logged in then how to get customer data from a session?
1
vote
4
answers
6k
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 ...
0
votes
0
answers
74
views
Magento Multiwebsite shared login and logged in while switching
I'm trying to share customer b/w two magento website with one backend, so here is my scenario,
Main website is www.abc.com & the second website is pro.abc.com, If a customer logged in site A he ...
4
votes
1
answer
3k
views
How to add a telephone number directly to the customer and not a billing address
Essentially, I want to be able to do something like the following:
$session = Mage::getSingleton('customer/session');
$customer = $session->getCustomer();
$customer->setTelephone($telephone);
$...
10
votes
4
answers
11k
views
Magento Default Captcha shows "Incorrect CAPTCHA" even if correct code is entered
In my magento site I have enabled Captcha for Create Account form of custom theme which I built from scratch(not "rwd"), but when I try to register a customer with providing correct captcha code in ...
0
votes
2
answers
9k
views
How to programmatically edit a customer account outside Magento directory?
I am using magento customer session outside magento. I have added section to signup and login from outside. But I dont know how to edit the customer accounts from outside magento.
This code, I used ...
0
votes
2
answers
2k
views
Keep products in shopping cart after customer logs out
I am trying to find a way to keep a customer shopping cart items in the shopping cart after they have logged out.
I have enabled persistence already which is fine as long as the customer logs back in ...
2
votes
1
answer
2k
views
Magento Clears Session Data After Redirect
For some reason, magento clears session or customer session data after redirect? How will I save some data before it redirect to the next page into a session?
I tried adding session_write_close(); ...