Jump to content
kaspars

Auto logout

Recommended Posts

One does not know how I can make auto logout? For example a person for 20 minutes in to your account does not she need a new login

  • Like 1

Share this post


Link to post
Share on other sites

/init.php - line 20

$cookie = new Cookie('ps');



change to

$cookie = new Cookie('ps', '', );


example

$cookie = new Cookie('ps', '', 1200);


would keep the user logged in for 20 minutes

  • Like 1

Share this post


Link to post
Share on other sites

It should work, let me know if it does not and I will look into it some more.

--Kevin

Share this post


Link to post
Share on other sites

However, there is a problem. I can not login . Logout are not working. Need to edit!

Share this post


Link to post
Share on other sites
Try this

$cookie = new Cookie('ps', '', time( ) + 60 );



Works fine here. I set the value to 180, and after 3 minutes, the user is logged out when trying to place an order.

Share this post


Link to post
Share on other sites

And what if the customer is logged out after 20 minutes and logs in again? Would the cart still be available if the customer has something in the shopping cart, or would it be deleted also?

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More