Questions tagged [session]

Denotes questions about session management in Magento.

Filter by
Sorted by
Tagged with
1
vote
5answers
4k views

Suddenly Magento sessions stopped working

Suddenly the session on our live site stopped working. Do not know why this is happening. Our site is hosted on AWS EC2 Linux var and var/session folder exists and have permission 777 nothing there ...
0
votes
1answer
2k views

Magento Cart empty after login @ checkout /w Safari browser and Magento 1.9.0.1

We have this problem. Customers have 3 products in cart. Then go to checkout & log-in: after login their cart is empty! Not good for conversion. I see some questions actually requesting this ...
2
votes
2answers
1k views

Extending session / cookie lifetime for customers (Amazon-style)

When visiting Amazon, I've noticed that I always get greeted by name: However, when I try click onto my account, it forces me to log-in again. I'm not 100% sure about the logic here, but I'm assuming ...
9
votes
2answers
13k views

When does Magento use sessions and when cookies?

I know Magento has following core functions for session and cookie handling: Mage::getSingleton('core/cookie'); Mage::getSingleton('core/session'); When does Magento set Cookies and when PHP ...
0
votes
1answer
81 views

different texts are added at the end of url for multi store site

we have many stores in our site but except main default site, i disabled every store. but these kind of urls ? = > at the end = "?___SID=U" http://www.kidsdial.com/slr-camera-tripod.html http://...
5
votes
2answers
4k views

Magento writing to tmp/magento directory

The site started throwing exceptions on both the front & backend. After disabling redis, memcached & the full page cache and reverting to using files for sessions, the site seems to function ...
2
votes
2answers
843 views

Logout user while preserving cart contents

When user leaves checkout funnel I need to logout him while preserving his cart contents (so the just logged out user as a guest would see all cart items that he had in a cart when he was logged in). ...
0
votes
1answer
297 views

Error on product update via API

We are getting the following error on updating products via the Magento API. Error message Uncaught Exception: Uncaught exception 'Exception' with message 'Serialization of '...
1
vote
1answer
798 views

How to check if a page your are on has a success massage on it

I need to add a a piece of javascript (a quantast tracking pixel) to the /contacts/index/ page when the user successfully sends a message by completing the contact us form. Similarrly I need to add ...
1
vote
0answers
339 views

Messages on product view are not showing. For example: please specify product option(s)

If I want to add a configurable product to cart - without specifying the product options - it used to show up a message like "please specify product option(s)". But this doesn't happen on my site. I ...
1
vote
2answers
7k views

Share Cart and checkout pages on multi websites in Magento

I have three sites like dom1.com and dom2.com and dom3.com.I want to share there cart and checkout pages like if someone buy products from dom1 and then come to site2 so on cart page his first site ...
0
votes
1answer
492 views

Show Magento cart details on Wordpress sites

I have used Magento and WordPress sits together.My directory structer is like this /Magento and /Magento/WordPress.Now i am trying to get the cart details on WordPress site using above code but its ...
2
votes
1answer
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(); ...
1
vote
2answers
8k views

Success / Error message on ajax request

Currently, I am using ajax to add an coupon to the cart. This requires a success/error message to display to the user. However, it seems that i'm unable to retrieve this error/success message ...
1
vote
3answers
19k views

how to check the customer is logged in or not on server level?

What i am trying to achieve is: Abandoned Customer Email Notification using 2 ways. 1). when customer logged out or closed his browser, 2). After X no. of days ON Both ways cron will work. For 2nd ...
4
votes
1answer
2k views

Using Magento core/session model

I have an observer attached to 'front_init_before' action: <controller_front_init_before> <observers> <custom_front_init_before> <type>singleton</...
3
votes
1answer
842 views

Customer Session

I am using the magento customer session to store some data. I want it to be destroyed when customer logs out. However (customer/session) still persisting the data. One way is I can unset data on log ...
0
votes
1answer
2k views

Can't login to second store on subdomain

I have a Magento site I've acquired. It's been upgraded from 1.6.x to 1.9.0.1. There were a couple of issues related to the new form_key tag which were fairly easily resolved, however there's one ...
1
vote
0answers
226 views

Cart showing empty in safari only in ipad [closed]

We are using magento 1.5.1.0, In ipad - selected item not showing in cart when using safari browser. Please help us how to solve it. Thanks, Kumar
1
vote
1answer
472 views

Magento duplicate on subdomain

For test and development, I duplicated our Magento shop to a sub-domain. Everything works, but not the admin Login. On the login page we get it. After entering my user name and password we don't log ...
1
vote
1answer
1k views

Problem with creating a session variable and using it in different module

I set a session variable through ajax request like in checkout page Mage::getSingleton('customer/session')->setMyValue($value_from_post_data); The above is set in a controller of a One Page ...
3
votes
3answers
15k views

Magento Admin Session Timeout Issue

I'm having an issue with Magento CE version 1.9.0.1 with admin session timeouts. It goes like this: I log into the admin. I go to the Catalog page. I leave the window open, and after a while my ...
5
votes
0answers
2k views

memcache session error [closed]

I used memcached for sessions, but I got error for session_module_name error is : Warning: session_module_name(): Cannot find named PHP session module (memcache) in /app/code/core/Mage/Core/Model/...
0
votes
1answer
61 views

Adminhtml expired session auto-merge

When managing multiple adminhtml tabs in a browser, idling for too long will result in being logged out. Consider a scenario where you have two tabs open, conveniently labeled tab 1 and tab 2, both ...
0
votes
2answers
916 views

Can't login to Magento admin using Vagrant box

I'm trying to set up a local dev environment using Vagrant and the Vaprobash script since I've used it before in several PHP based applications but for some reason I'm not able to login to the admin ...
0
votes
1answer
119 views

Magento custom session value time limit

I am creating a custom session value from an external file, How can I limit this custom session value to 5 minutes only? require_once('app/Mage.php'); umask(0); Mage::app("default"); $sessionCode = ...
2
votes
1answer
544 views

Looking for the “missing link” in IE cookie/session issue

Magento 1.9.0.1 CE on LAMP Experiencing an issue with the customer login page on our website. Users of IE7 - IE11 only are experiencing a redirect loop - the page refreshes without error message of ...
3
votes
2answers
2k views

Session lost with SSL after 1.9.1 upgrade

Since Magento upgrade 1.9.1 we are getting session lost issues when we have SSL enabled on frontend. This is when going back to magento after payment gateway site. I understand that the "security" ...
3
votes
2answers
1k views

What is the function of “_initLayout” in magento?

What does this function do in magento? $this->_initLayoutMessages('customer/session'); $this->_initLayoutMessages('catalog/session'); What _initLayoutMessages() return?
1
vote
1answer
1k views

Magento multi-store is not working with different cart or session

I am using a multistore setup and have an issue regarding using the same session after login. Site 1 : http://testsite.com/store1 Site 2 : http://testsite.com/store2 If login with the same user and ...
1
vote
0answers
1k views

How to disable Varnish via Turpentine for logged in users [closed]

I'm struggling to find a way to completely disable varnish for logged in users using the Turpentine extension. I have a member based site, non-logged in guests can browse products but not see prices ...
0
votes
1answer
115 views

Destroying session on completing order?

I am working on an extension and i want to destroy specific customly created session when the order is placed, not when it's paid, but just when it is created. Here is my config code: <global> ...
3
votes
1answer
1k views

Moving from file session to DB session

We are moving out site from single dedicated server to AWS. AS part of the AWS implementation we will be using a load balancer across multiple web hosts (to a single DB). In order to support this ...
0
votes
1answer
1k views

Getting New Session Id before session expires,checkout/session car is empty even cart has item

I have a local module, which adds product to cart.To add to cart i have some conditional check before adding to cart,and i am using getSingleton('checkout/session')->getQuote() object for getting ...
0
votes
2answers
948 views

Destroy specific session data on complete order

I am using Magento 1.9. When I want to destroy a specific session in Magento I run this code: Mage::getSingleton('core/session')->unsPcPayment(); But I want to execute this code when an order is ...
15
votes
3answers
14k views

Understanding Magento Registry

I have been wondering always, where is all the registry data stored in Magento ? I know that even singleton objects are stored in the registry. And registry is just a static array variable of the ...
0
votes
2answers
1k views

How to repopulate form data in magento if email already available

I created cumstom module for seller registration in magento. On email validation if email is already available...my form reloading with error email already available... On that time my form whole ...
1
vote
1answer
717 views

Magento - Access session outside magento

I'm using Mangeto 1.9.1 I'm trying to access the magento customer session outside magento in a php file in the root folder of the magento. Here is my code: <?php error_reporting(E_ALL | E_STRICT)...
1
vote
2answers
134 views

What is the best possible way of keeping search result data in Magento?

I'm using a third party API to communicate and get data to my module. The module is to get available flight details according to the search query submitted by the user. At this point I'm getting ...
-2
votes
1answer
1k views

Alternative for Mage::getSingleton('core/session')->addSuccess() [closed]

Due to some reason we disabled the core session on certain modules. In some files we have the following code Mage::getSingleton('core/session')->addSuccess() which is not working. can any one ...
1
vote
1answer
1k views

Empty session files on vagrant box

I have a vagrant box with a Magento installation. My var folder is set to 777 (not recommended I know but I'm trying everything). When I try to login to the admin, nothing happens. I see empty session ...
1
vote
0answers
178 views

Magento Session Size Issue - MongoDB [closed]

We are using Magento 1.5.1.0 version for the main website. There are around 1000 orders placed in the website and 1500 avg visitors on site. We are using mongodb to store the sessions the mongodb ...
5
votes
2answers
1k views

Why core session is empty?

I have a custom module, which basically adds social media login in magento. However I am facing an issue with core/session which I dont know how to resolve. I am adding my custom blocks in customer ...
3
votes
2answers
8k views

Mage::getSingleton('admin/session')->getUser() is returning null

I have a custom module in my magento (version 1.5) and it's meant to load the currently logged in admin username like this in one of my controller: $current_user = Mage::getSingleton('admin/session')-...
2
votes
1answer
305 views

1.9 - Unable to login to admin panel

I am just new in magento. I have installed magento on my localhost. After installing I have tried to login as admin, But I can't be able to login. I have tried in different browsers, But all browsers ...
0
votes
1answer
483 views

Access Session Variable within custom module

On my site i have several pages which set a core session variable as so: Mage::getSingleton('core/session')->setSellYourArtCheck(1); If i want to access this anywhere i can successfully do: Mage:...
2
votes
1answer
2k views

how to change cookies life time without from admin login

Accidently I have changed the cookies life time = 1 seconds, Now I am not able to change it to other values, Because When I login my session will destroyed in 1 second. So Any one know that how can ...
6
votes
2answers
17k views

How to empty cart or clear session “externally”

I have a unique workflow for redeeming vouchers on our site through Magento. I have a form that users use for inputting a series of vouchers to get products. It isn't "in" Magento as a CMS page or ...
1
vote
1answer
123 views

IE9 users being logged out when viewing a product

We have a problem on a Magento 1.9.0.1 store where if you use IE9 and log into your account then try to view a product this will somehow clear your session. It doesn't happen on any other page. This ...
1
vote
1answer
304 views

Getting error: find: missing argument to `-exec' when using cron job to remove temp files [closed]

I am trying to create a cron job that deletes any temp files after certain periods of time. In crontab I have this: MAILTO:="my@e-mail.com" @hourly /var/www/magento/cache.sh And in cache.sh there ...

1
8 9
10
11 12