Jump to content

Session remain (ON) even after restart of comp. for several days.


Taara

Recommended Posts

Hey There,
I am new at PrestaShop.

Can someone help me out. I am working on an online store. and if i did not logout session remain still on. even if i restart my computer or come back after some days. the same thing happen both with admin / and customer.
I even tried online demo http://www.prestashop.com/en/showcase_demo/ the problem is there as well.

Can some one help. If not fully kindly guide me so that i can fix it myself.

Thanks a lot for your reply.

Best Regards...!
Taara

Link to comment
Share on other sites

Hey every one, I got it. :coolsmirk:
Prestashop is using cookies instead of sessions.
so ? u should do if u r in the same situation.
Go to prestashop/classes/Cookie.php
Go to line# 50.
Change this line.

$this->_expire = isset($expire) ? intval($expire) : (time() + 1728000);

with this one.

$this->_expire = isset($expire) ? intval($expire) : (0);

We are good to go.

Regards,
Taara

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...