Questions tagged [session]

Denotes questions about session management in Magento.

Filter by
Sorted by
Tagged with
1
vote
1answer
349 views

Read blob field in core/session table

EDIT Sorry, I have formulated my question extremely badly: I need to retrieve this field(no problem) and read the value with php(problem, I haven't ever met this type of input and I don't know howto ...
1
vote
1answer
517 views

Magento CE cache mounted to ram? [closed]

Ive done alot of reading that mounting var/sessions and var/cache to ram will give a performance boost. However would this still be beneficial if I am using SSD?
2
votes
1answer
2k views

How to Delete Customer Session From Admin

I have been working on a site that requires users to be logged in and approved before they can access the website. That element works fine, except if as an administrator I edit the customer's account ...
1
vote
1answer
2k views

customer/session isLoggedIn() returns false

I was testing our site after working on a new feature and found that some pages showed the customer as not logged in even though it was. For example, the welcome message would show "Welcome to the ...
4
votes
3answers
6k views

How can I load a quote by session ID?

If have the frontend session ID, how can I load the quote associated with that?
1
vote
0answers
489 views

front end customer session expire issue [closed]

logged out immediately After login customer in front end . i checked in system->configuration->session Cookie management and cookie life time is 36000000. for only one website->store view only its ...
24
votes
2answers
32k views

What's the correct cookie config for a Magento site split across multiple instances as subdomains?

The problem A large site uses separate instances of Magento for different geographic regions so the businesses are isolated. Example: site.com north.site.com south.site.com east.site.com west.site....
13
votes
1answer
993 views

Magento varien session start very slow on category pages with MEMCACHE session storage

I am using memcache for session storage and on category pages I have noticed in new relic transactions where varien session start can take over 30 seconds. It can possibly be something to do with ...
1
vote
0answers
2k views

Cookie/session problems on login frontend and admin

I have an issue with login in admin and frontend for accounts. This started in Safari only. Not being a developer I'm not sure how to look to see what the cookie is trying to do, as I don't ever use ...
3
votes
1answer
2k views

Magento form key invalid after page becomes inactive for extended period of time

Running a recently upgraded instance of Magento CE 1.9.1.0 (from 1.7.0.2). Form key support was built in to the theme and is functioning a-okay when browsing the website with different browsers and ...
1
vote
1answer
4k views

How to get SID in magento

I'm trying to add online payment in my magento store and the bank that I work with suggest for making tests that I send to them some variables for testing the security (between them the SID). So my ...
1
vote
1answer
854 views

Grabbing storeview from cookie (after using language selector)

I have written a custom function to set our MAGERUNCODE based on the accept language and the uri request (beeing /). THis works fine. Now I have 1 remaining issue. And this is when the customer uses ...
7
votes
2answers
6k views

Is there a way to pass a coupon code as a URL parameter?

I would like to create URLs which activate a specific coupon. It could be as simple as passing the coupon code as a URL parameter. When a coupon is passed, I'd like it to automatically be populated ...
1
vote
1answer
650 views

Show notice in admin order grid based on filter

Background I am migrating a site to the Magento platform. I have a requirement to notify the admin if they're searching for an order that comes from the old platform. I have table of old orders. I'...
0
votes
1answer
1k views

Setting Custom Session in index.php - Problems

Creating a custom session in a store view's index.php in a subdirectory of the main magento installion. The code I added is as follows: require_once $mageFilename; Mage::init(); Mage::getSingleton('...
1
vote
1answer
740 views

Unset session when store is changed

Actually magento share session with differents Store/view. Is there a way to unset session when i switch store (not website, store). I don't want to share cart between two differents stores. Is it ...
1
vote
0answers
54 views

Mage error on saving a customer [duplicate]

This is occurring whenever I press "Save Customer" in the manage customers area in the Admin panel: Error: Fatal error: Class 'Mage' not found in /app/code/core/Mage/Core/Model/Resource/Session.php ...
1
vote
1answer
2k views

Storage Configuration for Media

Recently I changed media storage from db to files via System > Configuration > System and synchronized. It finished successfully but seems to have reverted back to saving product images in the ...
10
votes
3answers
8k views

Magento session storage: Redis vs. Memcached

I'm running a Magento EE 1.12.2 (equally in CE 1.7.2) where we have Redis for caching (Cm_Cache extension, Redis v 2.2.12), but we use Memcache for session storage. Redis is not supported out of the ...
3
votes
1answer
295 views

How to Set Session Cookie Based on Query-String Param in Magento

I'm building a Magento sandbox environment and need to set a session cookie based on a value in the query-string. The value in the query-string will be used to set an account ID for another service ...
2
votes
1answer
1k views

Persistent cart = off, adding 1 product and login results in 12 products in cart

we are having some issues with sessions it seems. Messages from customers like 'my cart is suddenly empty after login (account)', or 'my cart suddenly has many items after login'. When testing I see ...
1
vote
0answers
804 views

Modifying session.gc_maxlifetime results in front & back-end login loop

After reading that you should modify the session.gc_maxlifetime value to match1 the settings in: System → Config → Web → Session Cookie Management → Cookie Lifetime, and System → Config → Persistent ...
1
vote
1answer
1k views

Persistent Shopping Cart & session.gc_maxlifetime

I've received some conflicting information online about this, but when enabling Magento's native Persistent Shopping Cart is it necessary to also modify the php value for session.gc_maxlifetime to ...
1
vote
5answers
5k 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
85 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
5k 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
915 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
300 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
871 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
527 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
917 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
231 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
535 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
62 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
935 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
124 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
548 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 ...

1
9
10
11 12 13