Questions tagged [session]

Denotes questions about session management in Magento.

Filter by
Sorted by
Tagged with
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
485 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
310 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 ...
3
votes
1answer
10k views

Admin login problems. What are the correct settings of Session Cookie Management and Session Validation Management?

What are the correct settings for Session Cookie Management and Session Validation Management? In a single store setup In a multi store setup Session Management Cookie Path Cookie Domain Use HTTP ...
2
votes
1answer
200 views

Bug on session switch in https

I have created two views, one for English and one for the French. The default view is French. When the user chooses the English view there are switched to the French view when switching to https. I ...
3
votes
1answer
1k views

Other customers address show on checkout - security bug in magento

We have an issue with magento checkout - A customer logged into his account and in checkout page wrong address is shown and the interesting fact is that it is some other customer's address. The same ...
0
votes
1answer
907 views

Magento Session timeout when the browser close and doesn't browse for a while

I am new to Magento and I want to destroy the session when the user doesn't browse through your site for a while (5 mins) and the user closes the browser directly In both cases the session should ...
2
votes
1answer
1k views

Why does Cm_RedisSession Seems to Disable `session_decode`

I'm running a Magento 1.9 system, and have Cm_RedisSession configured to store my sessions in a local redis instance. For reasons that aren't entirely clear to me, it seems like the session_decode ...
3
votes
1answer
7k views

magento session messages printing

I am using magento 1.8. I have custom theme. I am unable to get newsletter error/success messages when customer submit their email-id for subscription. I have done many changes to get and print ...
1
vote
1answer
6k views

checkout/session setQuote

I am working with a module that has a lot of hard-coded calls to Mage::getSingleton('checkout/session')->getQuote() I am trying to call it from Adminhtml and in stead of rewriting a huge chunk of ...
0
votes
1answer
1k views

Session timeouts

I'm having some trouble understanding session timeouts in regards to Magento/Apache/PHP. We are converting from IIS/ASP. Initially I set the timeout in the admin, System->Configuration->Web->Session ...
4
votes
0answers
179 views

Admin logout warning [closed]

Is there a way that I can warn admin users that they will be logged out after a set period of time. EG 60 seconds before the session is timed out and forcing the admin user to login it pops up a ...
3
votes
1answer
970 views

Link API cart to browser customer

I am currently creating a cart for an anonymous user using magento API. These are the endpoints I am using to accomplish this: http://www.magentocommerce.com/api/soap/checkout/cart/cart.create.html ...
3
votes
1answer
1k views

Cookie-/ Session Problem after SSL Proxy Configuration

I recently set up my store to use an SSL proxy for secure connections. On Frontend everything works fine since I activated the configuration otion "Use SID in Shop frontend". A session variable is ...
16
votes
1answer
1k views

Why is the compare functionality linked to the (log)visitor id?

The first thing I do when starting a project is ask the client if he needs user logs in his website. In technical terms Mage_Log module. In all the cases so far I got the answer: No. We will use ...
1
vote
1answer
1k views

Session error in magento

Getting this error - Fatal error: session_start() [function.session-start]: Failed to initialize storage module: user (path: /tmp) in app/code/core/Mage/Core/Model/Session/Abstract/Varien.php ...
3
votes
2answers
416 views

Forget Admin login/session on browser close?

Is there a setting in Magento CE that will cause it to forget a user is logged into the admin if the browser is closed (and force them to re-enter their username & password)? e.g. for use at a ...
2
votes
1answer
6k views

how long will the items stay in shopping cart for logged in customers?

Since so many customers added items in shopping cart but not checkout, the stock will be hold by this situation. How can i limit the time of items staying in customers's cart? Setting Quote Lifetime ...
2
votes
0answers
125 views

Admin cookie deleted on image upload [closed]

When I upload an image for a product Magento is deleting my admin cookie, so when I go to 'save' I am returned to the admin login page. I am really not sure what's going on. Any ideas? My cookie path ...
6
votes
1answer
5k views

Switching back to MySQL sessions after using Redis sessions

I'm having an issue with my site. We were using Redis sessions, but after some issues with latency we've decided to switch back to MySQL sessions. The app/etc/local.xml file used to look something ...
1
vote
1answer
452 views

How to add visited pages to magento session?

I want to add an array of visited pages by a user to magento session, when the user first time visits the page. i have tried this $current_page[]= Mage::getSingleton('core/session')->getMyval(); ...
1
vote
1answer
118 views

persistent cart login step

In the persistent cart steps, customer is sent to the login page to re-enter the login information. What I want to do is if the customer is logged in (step also adds "Not" in welcome msg header), I ...
8
votes
1answer
11k views

Erratic cookie-related login problem

this will be a long one... I've got a bad case of erratic login failure, due to wrong cookie management. First of all, I'm managing a closed store (B2B) in which customers have to login before they ...
2
votes
2answers
987 views

Magento EE - Backend, getting log out

I'm getting this strange behavior in the backend, I'm getting log out much frequent. Session Lifetime (seconds) is set to about 180 minute (configuration->advanced->admin->security) Cookie ...
1
vote
1answer
2k views

unset session in magento

I need to unset the multivalued session in magento, because i have added a large amount of values into session on the based of particular params like: $postData = $this->getRequest()->getPost()...
2
votes
1answer
2k views

Programmatically reorder multiple orders

In my Magento custom module I'm trying to go through array of some orders and re-order each. However, I'm facing strange issue. The first order from that array is well reordered, but all other ...
1
vote
1answer
948 views

How to clear session on browser close?

I want to store a value in session and to remove it on browser close. How can I do this?
2
votes
1answer
701 views

add error message to order view and stop shipment creation process [closed]

I have created event observer to add tracking numbers automatically. I am useing this event: <sales_order_shipment_save_before> And there is my code for adding tracking number: public ...
2
votes
1answer
1k views

Ajax Request Session Messages

I have implemented the EasyAjax extension by Vladimir Fishchenko, which is an amazing extension that allows you to make ANY Magento request via Ajax. One problem I am having relates to session ...
6
votes
1answer
186 views

How to set understory session

I have use Enterprice edition I want to set the session for magento site like Gmail. The user login, the session will set. Once user click logout button the session will destory. Other wise the the ...
4
votes
2answers
975 views

Magento Multisite domain switching - How to automatically switch customers to a different website

In a multi-site instance where each website is assigned specific domain name, I currently have a requirement to automatically switch customers to specific website. Please see example scenarios below… ...
4
votes
4answers
5k views

Magento generating aprox 20 session files per minute

I have a problem with a Magento installation. This installation is not live and as such has no traffic etc. I watched in cpanel's file manager and it appears to be generating 15-25 files per minute in ...
0
votes
1answer
531 views

Cleaning up when session expires

I've written a module that stores data in a separate table. Because the data needs to be in a table (for a performant SQL JOIN) and should only be valid momentarily, the table uses the session ID as a ...
3
votes
2answers
6k views

Product not adding to cart

When opening up a product page (example.com/store/women/catalog/product/view/id/215/) in a new session and using the standard add to cart, my product gets dropped and says the shopping cart is empty. ...
-1
votes
1answer
82 views

Magento not working well with ExpressionEngine

I'm writing an ExpressionEngine (2.7.2) plugin to return some information about the user's current Magento (v 1.4.0.1) session. We currently have EE and Magento working together on our site with EE ...
0
votes
1answer
3k views

var/session/ session files are empty

We have a weird problem. On a site at random times the sessions files on the site are empty, 0 kb. After removing/clearing the cache the sessions get back to about 2.2kb. I have no clue to figure out ...
2
votes
2answers
3k views

what is beforeAuthUrl and afterAuthUrl in customer module?

Some explain about beforeAuthUrl and afterAuthUrl. These two are session variable used in customer module to redirect to last visit page before login. This is my understanding. But why magento ...
8
votes
2answers
17k views

Saving data to session using Magento observer function

Is it possible to store data in the Magento session or registry using the the observer function, with: Mage::getSingleton('core/session')->setFoo('bar'); //Or 'customer/session', 'admin/session' ...
3
votes
0answers
434 views

Magento single sign on from different servers [closed]

I have Magento running on one server and I would like to check from a different server, same domain, different subdomain, whether a customer is logged in. Basically customers log in to Magento and ...
1
vote
0answers
32 views

Running cronjobs in different sessions [closed]

We are having a problem whereby two cronjobs are using the adminhtml/session_quote to save order information (both jobs are generating orders, one is related to subscriptions and the other importing ...
3
votes
2answers
10k views

How to get customer group id by username without login?

I have been creating one custom module for block some customer group to wholesale store. we can get customer group id by current session like $session = Mage::getSingleton('customer/session'); // ...
4
votes
1answer
1k views

Create cart for session via SOAP

Info I'm quite new to Magento and now I've to develop an external service (C# web service), which needs to add a product to a customers cart (using the SOAPv2 call shoppingCartProductAdd). The only ...
2
votes
2answers
7k views

Login into magento from outside of magento without ruining $_SESSION

I am trying to integrate an external site with magento, so that when a user logs into site A, magentos session cookie gets set. Currently I am doing this: <?php $email = $_POST["email"]; $...
0
votes
1answer
4k views

get session in template file

I am setting a session variable on an event triggered when the url have an extra variable name "pcode" with the following code. Mage::getSingleton('core/session')->setPcode($pcode); Now when ...
1
vote
2answers
988 views

Problem in accessing Cart Items at onepage checkout page

When I try to use get cart items in a onepage checkout block, It always leads to Allowed Memory Exhausted error. The code I am using: Mage::getSingleton('checkout/session')->getQuote()->...
0
votes
1answer
244 views

No Session Message on Frontend?

I have a very strange issue that looks related to session. There are a couple of things not working: If I add a product to the cart, I'm redirect to the cart page but no items If I try to create a ...

1
9 10
11
12 13