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.
Related
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.
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! :)
I have a Magento website up and running. Suddenly I could not Login to the website and could not add products to the website. On login, it simply redirected back to login page from admin end. And on adding product to cart it kept asking for enabling cookies.
Now I have updated the value of "web/cookie/cookie_domain" in core_config_data to "", and it started working fine, though previously the value was the domain name. Can anyone really suggest/explain why does it behave like this?
Magento also has an issue where if you use the bare domain and a subdomain to try accessing the site, it can set two cookies, one for example.com and one for subdomain.example.com.
You will have issues logging in for either front or admin sessions until you delete all the Magento cookies pertaining to your domain. Setting cookie paths, domains and redirecting all bare domain traffic to www or all www traffic to bare domain is necessary to prevent the issue.
search the web and found solutions.
Disable redirect to enable-cookies CMS page
Go to System –> Configuration –> General –> Web –> Browser Capabilities Detection –> Redirect to CMS-page if cookies are disabled = No
for more info you See this link.I hope solve your problem.
website - http://www1.internetvoipphone.co.uk/
Note - http://www.internetvoipphone.co.uk/ uses V1.3.2, www1 address is our V1.6 dev site before going live so please only look at that one.
Issue - when a user logs in then browses back to a product page they switch from https back to http which in turn logs them out, we cant find a reason why magento changes some links to https but not others
account details for testing:
username: test#test.com
password: password
I've tried resetting to the default template but the issue still occurs so it must be a magento config issue, any help greatly appreciated
The issue seems to be caused by cookies, we use two URL's www1.internetvoipphone.co.uk and secure.internetvoipphone.co.uk, each domain was sending out a cookie "frontend" which seem to have been conflicting.
setting the cookie domain to .internetvoipphone.co.uk generates a single cookie and as yet seems to have fixed the issue.
Yes the cookie path and also the browser's cache can wreak havoc with Magento when using a development installation, even if on another domain.
After logging in (authorization) within my application a session is created and I am being redirected to correct location (SSL page). However, after clicking on a hyperlink (non SSL page within same application) I am being logged out automatically (authenticated session lost). I tested the same in FireFox 3.6 and the application is working as expected.
The above is only happening if i clear the chache from IE and log in. However, if I login for second time after just closing the browser the above does not occur.
Thanks,
Lihnid
Do you have the <forms requireSSL="" /> property set to true in your web.config?
If so, you may need to set it to false if you want the Forms Authentication cookie to be sent for SSL and non-SSL encrypted pages.
http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.requiressl.aspx
What do your URLs look like before login and after login? This kinda thing happened to me before, and it turned out that my authn cookies were having trouble with a domain change from www.domain.com to domain.com or visa versa.