Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Increase Login Session Time For Users/customers Rate Topic   - - - - -

 
  • alijaved
  • Advanced Member
  • Members
  • Join Date: 14-Apr 18
  • 124 posts

Posted 21 August 2018 - 04:34 PM #1

Dear members,

 

I want to increase the session time for users/admins to infinite or until they log out themselves. I do not want the users to log out automatically after 2 hours.

 

I know there are some changes required in config.pho file, can someone please drop me a line of code that I have to put there? 

 

Please drop me a full line of code that I can replace with 2 hours of session time, I need an infinite login session for customers and admin panel. I never want them to log out until they log out themselves.

 

 

My Cs-Cart version is 4.7.2



 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3823 posts

Posted 21 August 2018 - 05:44 PM #2

// Session live time
define('SESSION_ALIVE_TIME', SECONDS_IN_HOUR * 2); // 2 hours


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19582 posts

Posted 22 August 2018 - 05:46 AM #3

In the config.php file which is located in the root directory of CS-Cart installation


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Ginestra
  • Newbie
  • Members
  • Join Date: 06-Jul 11
  • 5 posts

Posted 22 August 2018 - 02:27 PM #4

On this, do many of you bother to change this? Any good reason why non-logged in is what seems to me to be very low (2 hours)?



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11335 posts

Posted 22 August 2018 - 05:53 PM #5

It's effectively an idle time and is used for security purposes.  I.e. if you're away from your desk for more than 2 hrs, then the session becomes inactive until you re-login.  

 

2hrs seems a reasonable amount of time to expect interaction with your site before effectively logging you out.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • alijaved
  • Advanced Member
  • Members
  • Join Date: 14-Apr 18
  • 124 posts

Posted 23 August 2018 - 08:49 AM #6

// Session live time
define('SESSION_ALIVE_TIME', SECONDS_IN_HOUR * 2); // 2 hours

 

 

For infinite, can I make it as following, for 1 year? 


 

// Session live time
define('SESSION_ALIVE_TIME', SECONDS_IN_HOUR * 8760); // 8760 hours in 1 year


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19582 posts

Posted 23 August 2018 - 01:20 PM #7

Yes, you can if you do not worry about security aspects


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • alijaved
  • Advanced Member
  • Members
  • Join Date: 14-Apr 18
  • 124 posts

Posted 26 August 2018 - 10:07 AM #8

Thanks guys it worked great :-)