Questions tagged [session]

Denotes questions about session management in Magento.

Filter by
Sorted by
Tagged with
3
votes
1answer
1k views

Magento creates two customer sessions with one browser for the same guest?

I'm using Magento 1.7.0.2. And I have the Problem to access customer session data I set in different controllers. I found out, that Magento generates two session files (in var/session/) when I load ...
15
votes
2answers
4k views

Autologin on frontend from the backend

See the following scenario. I have some custom module that allows the frontend user to perform some actions on some custom entities. (details are not really important). The request is that an admin ...
1
vote
4answers
3k views

Customer Session outside Magento

I would like to know if it is possible to fetch the Magento customer session outside Magento and how to go about it. For example if my Magento instance is in a folder with the path : "public_html/...
2
votes
2answers
2k views

Failed to initialize storage module in magento

When I upgraded Magento 1.7 to Magento 1.8 500 internal errors started to come on the page. I have removed this by changing the permission of index files (644). But still I am facing an issue. 500 ...
1
vote
1answer
2k views

Product prices including/excluding tax dependent customer session

In Magento Backend Configuration Settings > Tax > Price Display settings "Display Product Prices In Catalog" is set to "Including and Excluding Tax". In front-end , If customer is logged in and is ...
0
votes
1answer
217 views

Is there a sort order for success messages?

I use checkout_cart_product_add_after event to check whether the particular product is available for the zipcode (which is already stored in customer session). I show a notice message if it's not ...
3
votes
2answers
988 views

My Magento store Warnings and Error messages for users are displaying on wrong pages

I've got a magento store that is working perfectly fine. But the only issue is that Error messages are not displaying where they suppose to be displayed. For example the message displayed on the ...
2
votes
2answers
398 views

(NOT USERNAME?) in the toplinks section, cookie issue?

Sometimes I will see in the top header (NOT MYUSERNAME?) and items that I’ve added in the past in my cart, even know I’m not logged in anymore. This is extremely annoying and I haven’t seen a fix for ...
0
votes
1answer
551 views

Accessing error data from forms

I am trying to re apply user information to forms which they have incorrectly completed. Current steps of the form: 1 - user is presented with form 2 - user enters data 3 - user submits data 4 - ...
0
votes
3answers
4k views

Create Single sign-on using Magento sessions

I have an application hosted on a different server, and I want to authenticate using Magento instead of maintaining two separate user lists. I've already done this for applications on the same server ...
0
votes
0answers
101 views

How to check if admin user is logged in on frontend [duplicate]

I was wondering how it is possible to check if admin user is logged in on the frontend?
0
votes
1answer
2k views

User Information using cookies/session in magento [closed]

I am working on a Magento extension. In this extension I would like that user can add products from front side. Those products will be shown on his account when is logged in or not. If the user is not ...
9
votes
3answers
4k views

Is there customer session support via Magento's REST api?

I'm working on extending wishlist functionality to Magento's REST api. It would be nice to access the customer's session. Does Magento have any support for accessing the customer's session via REST?
0
votes
1answer
2k views

Magento visitor data is not getting populated, why?

I need Magento's visitor_id to save some data against visitors come to my Magento store. But I found in some instances $session[visitor_data] array is empty. But I can see frontend cookie is created. ...
3
votes
3answers
5k views

Set Error Message Once Per Page Request

I'm trying to create a minimum total checkout module that will prevent someone from checking out with a total less than a configurable amount. I'm using the event sales_quote_save_before to display ...
4
votes
2answers
9k views

Enable persistent connections with Redis cache / sessions?

Using Redis as the backend for Magento cache and Magento sessions (through Cm_Cache_Backend_Redis and Cm_RedisSession with phpredis), what is the best performance wise with respect to the "persistent" ...
2
votes
2answers
881 views

Checkout session clears after first step on Onepage

I have the same problem as here: Cart dropping all items / cart session clears Although the answer seems to work for the questioner, for me it doesn't. I have really tried "everything" now: Set ...
1
vote
1answer
234 views

Sessions are shared on Safari

Bit of a strange one and in my years of Magento development have never come across this before. When you add to cart in Firefox, chrome everything works as it should. When you add to cart in safari ...
0
votes
1answer
752 views

Session gets clear in category page only in Magento

I have one problem in Magento Live server uploaded site. The problem is related to session or cookies. When I add product to cart or login, then visit category page, the session gets clear and i get ...
0
votes
3answers
151 views

How to get a value from a running action?

I have a case looks like this: Here is my controller code: //example controller: public function runAction() { // a example code that run a long time $count = 0; while (true) { $...
1
vote
4answers
7k views

Magento Connect Manager login loop

When trying to install new extensions through Magento Connect Manager, the page shows a login prompt. Upon logging in the page will just reload without installing or doing anything. The same behavior ...
10
votes
2answers
2k views

Can't Login to Admin after Installing Extension

Apologies in advance for the thin details on this one. I sell a Magento extension. With the latest release, I've started getting an odd bug report from a few users. Specifically, after installing ...
1
vote
1answer
1k views

Can / Should I Use The Admin Session in Frontend

For some use cases it would be nice to know, when on frontend, if an admin is logged in and to fetch the user's ACLs. I know that this is not "easily" possible, i.e. the frontend and admin sessions ...
2
votes
2answers
2k views

Admin panel hangs after login

I am having a issue on my live server, when I try to login to the admin panel it lets me through but then it just hangs and the panel never gets loaded. The same code running on my dev instance works ...
0
votes
2answers
5k views

How to add products in cart and wishlist with external code outside Magento

How can I add products with PHP to the customer's cart. Having customer's id and login details. The login is successful. Just need to update the cart with the products, quantity and prices that user ...
7
votes
3answers
9k views

Persistent shopping cart works even if disabled

In the backend, I have got "Enable Persistence" set to "No". Still, If I use one browser to add something to cart, I can see that in the second browser after page reload. How can this work if ...
1
vote
1answer
1k views

Persistent cart session

Is "persistent cart session" in fact checkout/session or is it a separate session? If it is separate, can I use it from my modules? I need some data to persist together with the shopping cart content.
17
votes
1answer
3k views

Long Running Admin Page Requests Blocking Other Requests

If I'm logged into Magento's backend and perform some task that takes a long time (global search on large catalogs, long running dataflow, etc), my web browser will refuse to load other admin pages in ...
8
votes
4answers
10k views

Sharing Sessions Between Stores with Different Domains

I have three websites on a Magento installation, each has its own domain. Now due to web-browser security you cannot access cookies from another domain, nor sessions. Somehow I need to be able to ...
1
vote
2answers
3k views

Customer Session is Empty In Custom Module

I have made a custom module which uses the customer session, but its strange, on live site its not returning customer data. I have tried following methods: $sessCustomer = Mage::getSingleton('...
1
vote
2answers
1k views

Make same customer use different sessions on different browsers

Unfortunately, due to circumstances beyond my control, I need to make the following configuration work: Alice logs in as a Customer with username foo. Then Bob logs in as the same Customer (foo) on ...
1
vote
1answer
6k views

How to get global messages in compare products page, getMessagesBlock is empty

I'm trying to get global messages in compare products page, but none of the messages get rendered, instead all of them appear in any subsequent page I'm going, after producing messages with for ...
0
votes
1answer
267 views

Setting data on Session not working ( different behavior on 2 server)

I need to store some data on Session during a call to Magento API, so I have overwritten Mage_Checkout_Model_Cart_Customer_Api and added this: Mage::getSingleton('core/session')->setCustomVar('...
3
votes
2answers
6k views

Detach quote from customer session

I need to somehow detach the quote from the customer session so it is still sitting in the DB marked as active but no longer part of the customer session (still with the customer_id in the DB record ...
1
vote
1answer
371 views

MageTool - Does clear cache clear the sessions cache?

I am using the Mage Tool to clear my cache, and I am wondering, when I clear the cache using this tool, does it empty all the users shopping carts? The tool can be found at : https://github.com/...
1
vote
2answers
730 views

Getting session in block

I set a session using Mage::getSingleton("core/session")->setCustomPriceValue($myvalue); in my frontend phtml file. To get the value I called Mage::getSingleton("core/session")->...
2
votes
3answers
2k views

Magento 2 : Impossible to retreive the customer id of the session in an external script

I created an external script test.php inside Magento 2 at the root. But, I don't succeed to retrieve the customer ID of the session in this external script. The script is as follows: <?php ...
27
votes
8answers
29k views

Cart dropping all items / cart session clears

A site I manage suddenly (potentially 2 weeks ago - from GA stats, and only reported now) started dropping the cart items when you view the cart, or go to checkout. The top 'mini-cart' shows the ...
9
votes
1answer
2k views

How do you add a session message after session_write_close is called?

We use the excellent uRapidFlow module by Unirgy, but have ran into a bit of an annoyance. When you run one of their profiles, they call session_write_close. The problem with this is that it means if ...
45
votes
11answers
42k views

How should I handle session files that become too numerous?

I am acting as a sysadmin for a couple of servers that hold Magento sites and occasionally they fill up with session files. I have been told that managing these files isn't something that can be done ...
11
votes
1answer
1k views

Access Magento session from external site

How do you log in an existing customer/user from external application or bypass his session after logging into Magento to other application?

1
8 9 10 11
12