getting shopping cart empty page on add to cart - magento

I am getting product name was added to your shopping cart on magento 1.9. I have changed cookie settings but still getting same issue.
Can anyone resolve this issue?

You can fix by increasing the cookie life time to 86400 under
Sytem -> Configuration -> Web -> Session and Cookie Management
The Reason that I found out after doing some research on internet and different forum is that in Magento, by default cookie lifetime is set to 3600 (1 hour). But if the end users computer time runs ahead of server’s time, cookies will not get set for Magento frontend as well as backend. For example, end user’s computer time is 1 hour forward than server’s time, that means the cookie (holding user’s session id) will expire as soon as user logs in or tries to add an item.
If that didt work, than try clearing your browser cookies and check....
Also one more opton is Set your cookie domain to: .domain.com in Backend

I thing it may be cache or cookie issue, try with following points.
Flush cache and try to add to cart in same or private window.
Flush cache and try to add to cart in another browser private window.

Related

magento cart empty in internet explorer after updating

In internet-Explorer after updating quantity of product on checkout page,
page is redirect to empty cart page.
I tried the cookie solution but it doesn't work for my site
Here's your Solution:
Set cookie domain: http://www.domain.com/
Set your cookie domain to: .domain.com
This is due to the cookie problem, not in browser but in Magento itself. In Magento, by default cookie’s lifetime is set to 3600 (1 hour). But if the end users computer time runs ahead of server’s time, cookies will not get set for magento frontend as well as backend. For example, end user’s computer time is 1 hour forward than server’s time, that means the cookie (holding user’s session id) will expire as soon as user logs in or tries to add an item.
To solve this, set cookie’s lifetime to 86400 (1 day) instead of 1 hour and everything will work as expected. You can also set cookie lifetime to 0, so that cookie will only expire when the user’s browser is closed.
Go to: Magento backend -> Sytem -> Configuration -> Web -> Session and Cookie Management Set cookie lifetime to 86400 and save. Everything will work as expected now.
In case you or someone else out there is experiencing the same problem (I too was stuck on this issue for a long time).
I tried editing the files, I tried cookie lifetime extension, I tried the URL change, nothing worked.
What finally made my Magento 1.9 work and resolve empty cart is when I went to Config > Web > Under the cookie session management section, make sure the cookie domain and cookie path is blank. Once you have done that, save, clear cache, and everything should work properly.
Let me know if it works for you! :)

How to increase Plone login session?

I dont want my user have to login again everyday, I would like to increase login session to a week, for example. How can I archive that?
I’ve tried to increase cookie timeout and cookie life time in ZMI -> acl-users -> session -> properties, but it doesnt work.
You're on the right path :-)
Set the Cookie validity timeout to 0 and the Cookie lifetime to 7.
Make sure you're using a plone user, no one from the zope-root (inherited user).
You can check if the settings are working by check the browser resources, hier an example in chrome:
Today ist the 20. August, the Cookie __ac will expire in seven days.

Magento losing cookie when login (switch from HTTP to HTTPS)

I have a Magento 1.7.0.2 installation which loses session data when logging in.
It logs in correctly from main page (HTTP) and works fine until I go to Cart page and click checkout. Then it leads to checkout where I am logged out (already HTTPS) and when I try to login it redirects me to account/dashboard and thus I cannot ever complete an order.
Recently we've changed the server from Litespeed to Apache, I'm not sure if the problem is in Apache configuration because As I change the cookie settings from Magento, it makes no effect.
I've tried setting the domain like ".www.example.com", path to "/", expire time to "5400", no effect.
EDIT: it turns out the cookie is not passed to /checkout/onepage/ request. That is when I click the checkout button. What may be the reason for this?
Try to change System->Configuration->Web->Session Cookie Management->Use HTTP Only to "No" and clear the cache.

What happens to Rails session after :expire_after time is up?

Does the session become nil? Does the change take effect only on the next request?
I think I just asked three questions now...
You can try to explore by using the similar settings:
AppName::Application.config.session_store :cookie_store, key: '_session_key', expire_after: 20.seconds
Then open up dev tools in your browser and go to cookies and select localhost cookies to see what happens.
I found out that:
Session cookie gets deleted after the expiration time
Expiration time for a cookie gets updated automatically (re-set) upon any request (even background ajax request counts)
The effect by default will take place upon the next request (refreshing the page for example) and if you use typical authentication (has_secure_password_ for example) user should be logged out
I found the last comment on the ActionController::Base documentation page really helpful on this topic

Magento Permanent Customer Session

The premise is simple.
New customer arrives at our site, is redirected to the register/login page (since they are a new visitor and no cookie is present) and after registering or logging in (if already have an account but visiting from a different machine/browser) they are taken to the home page.
Every time they subsequently visit, they should not see the register/login page (unless they explicitly log out, cookies are disabled/blocked, or they visit from a different browser/device).
I would think that theoretically, setting the cookie value to an absurdly high number (in our case, 30+ years) and checking for the presence of that cookie before the redirect to the register/login page would work.
In our case it is not. I feel like the session is still lasting roughly an hour or so before a visit back to the home page of the site redirects a user to register/login.
So what am I missing here? Any advice?
---edit---
I had been assured by our web host that session.gc_maxlifetime was not the issue. I set it to 86400 on our development server and after leaving my browser idle overnight, I returned the next day and I think it's working as intended.
One issue I have with this is that it also sets the magento admin timeout to the same value, which may introduce a security risk if an employee is given Magento admin access and then gets fired/quits/etc. I certainly don't want their session to continue for as long as we want customer sessions to last (months).
I'm hoping that the CONFIG>>ADVANCED>>ADMIN>>SECURITY>>SESSION LIFETIME setting is not overridden by this.
Your problem is most likely with the Php session value you need to increase it to match the value in the cookie duration; on your php.ini put the following:
session.gc_maxlifetime = 86400
You need to replace the '86400' value with what equivalent time that you want the session / cookie to last I would advice that you set your sessions and cookie value'604800' that's about a week.
What is going to happen on your server is that magento is going to a session file per session under the var/sessions folder. This can potentially can cause your server to run out of inodes , depends on your server configuration.
Cheers!

Resources