Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Keeping the users loged in and keep anonimous users cart content

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #21  
Old 04-30-2008, 03:33 AM
 
virtual@croatia virtual@croatia is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 92
 

Default Re: Keeping the users loged in and keep anonimous users cart content

Quote:
Originally Posted by imexhouse
Yeah, but where's the code?

In the first post (top of the thread).
__________________
Check what you can do with x-cart 4.1.9:
www.smee.com

Modules I made:
IP_Ranges
Multy_Currency
Order_Dates

Modules I use:
Fancycategory
Magnifier
Survey
AOM
Reply With Quote
  #22  
Old 04-30-2008, 03:50 AM
  imexhouse's Avatar 
imexhouse imexhouse is offline
 

eXpert
  
Join Date: May 2006
Location: Canada
Posts: 377
 

Default Re: Keeping the users loged in and keep anonimous users cart content

You mean you edited the original post?
The one that didn't work?
I just want to make sure...
__________________
Jack@AquasanaCA
X-CART GOLD 4.0.19 Live
DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts
AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America!
X-CART GOLD 4.4.5 Live
CDSEO Pro v. 1.8.4
AquasanaMontreal.com
Aquasana╝ & Rhino Water Filtration Systems
Reply With Quote
  #23  
Old 04-30-2008, 03:54 AM
  imexhouse's Avatar 
imexhouse imexhouse is offline
 

eXpert
  
Join Date: May 2006
Location: Canada
Posts: 377
 

Default Re: Keeping the users loged in and keep anonimous users cart content

In my config.php (4.0.19) I have:

$config["Sessions"]["session_length"] instead of $use_session_length

Anyway, I added some stuff to the cart on smee and left. We'll see later on today..
__________________
Jack@AquasanaCA
X-CART GOLD 4.0.19 Live
DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts
AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America!
X-CART GOLD 4.4.5 Live
CDSEO Pro v. 1.8.4
AquasanaMontreal.com
Aquasana╝ & Rhino Water Filtration Systems
Reply With Quote
  #24  
Old 04-30-2008, 05:32 AM
 
virtual@croatia virtual@croatia is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 92
 

Default Re: Keeping the users loged in and keep anonimous users cart content

Quote:
Originally Posted by imexhouse
You mean you edited the original post?
The one that didn't work?
I just want to make sure...

Yes, the original one. I edited it, it's better to keep changes at the top of the thread.
__________________
Check what you can do with x-cart 4.1.9:
www.smee.com

Modules I made:
IP_Ranges
Multy_Currency
Order_Dates

Modules I use:
Fancycategory
Magnifier
Survey
AOM
Reply With Quote
  #25  
Old 04-30-2008, 05:40 AM
 
virtual@croatia virtual@croatia is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 92
 

Default Re: Keeping the users loged in and keep anonimous users cart content

Quote:
Originally Posted by imexhouse
In my config.php (4.0.19) I have:

$config["Sessions"]["session_length"] instead of $use_session_length
That's the same. In 4.1.x is $use_session_length, but in an another file is a line with $config["Sessions"]["session_length"] = $use_session_length

Quote:
Originally Posted by imexhouse
Anyway, I added some stuff to the cart on smee and left. We'll see later on today..

I think it works, cause the table xcart_sessions_data in which are all sessions data variables (cart contents, login name etc.) is growing. This table will have exactly the same amount of rows as are unique users in 6 months plus robots, so it will be quite a big table .
__________________
Check what you can do with x-cart 4.1.9:
www.smee.com

Modules I made:
IP_Ranges
Multy_Currency
Order_Dates

Modules I use:
Fancycategory
Magnifier
Survey
AOM
Reply With Quote
  #26  
Old 04-30-2008, 07:29 AM
  imexhouse's Avatar 
imexhouse imexhouse is offline
 

eXpert
  
Join Date: May 2006
Location: Canada
Posts: 377
 

Default Re: Keeping the users loged in and keep anonimous users cart content

Well, I just returned to your store and the cart is full!
Good job!
__________________
Jack@AquasanaCA
X-CART GOLD 4.0.19 Live
DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts
AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America!
X-CART GOLD 4.4.5 Live
CDSEO Pro v. 1.8.4
AquasanaMontreal.com
Aquasana╝ & Rhino Water Filtration Systems
Reply With Quote
  #27  
Old 04-30-2008, 07:32 AM
 
virtual@croatia virtual@croatia is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 92
 

Default Re: Keeping the users loged in and keep anonimous users cart content

Quote:
Originally Posted by imexhouse
Well, I just returned to your store and the cart is full!
Good job!

Thanks. I hope it will stay full for 6 months . You can try my wishlist as well. I made it to accept anonymous users (usually you have to log in to use it) and it should keep it for 6 months as well.
__________________
Check what you can do with x-cart 4.1.9:
www.smee.com

Modules I made:
IP_Ranges
Multy_Currency
Order_Dates

Modules I use:
Fancycategory
Magnifier
Survey
AOM
Reply With Quote
  #28  
Old 04-30-2008, 02:41 PM
  imexhouse's Avatar 
imexhouse imexhouse is offline
 

eXpert
  
Join Date: May 2006
Location: Canada
Posts: 377
 

Default Re: Keeping the users loged in and keep anonimous users cart content

I think the line in modules/Users_online/registered_users.php:

$expiry_time = $curtime + 300;

is ignored, if you set the session expired time in config.php to something else.

I have registered_users.php set for 5 minutes, but my users online stats are still showing users that visited my site 12 hours ago.
__________________
Jack@AquasanaCA
X-CART GOLD 4.0.19 Live
DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts
AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America!
X-CART GOLD 4.4.5 Live
CDSEO Pro v. 1.8.4
AquasanaMontreal.com
Aquasana╝ & Rhino Water Filtration Systems
Reply With Quote
  #29  
Old 05-01-2008, 01:06 AM
 
virtual@croatia virtual@croatia is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 92
 

Default Re: Keeping the users loged in and keep anonimous users cart content

Quote:
Originally Posted by imexhouse
I think the line in modules/Users_online/registered_users.php:

$expiry_time = $curtime + 300;

is ignored, if you set the session expired time in config.php to something else.

I have registered_users.php set for 5 minutes, but my users online stats are still showing users that visited my site 12 hours ago.

I think you are right. I'll check tomorrow what is going on with it and send the correction.
__________________
Check what you can do with x-cart 4.1.9:
www.smee.com

Modules I made:
IP_Ranges
Multy_Currency
Order_Dates

Modules I use:
Fancycategory
Magnifier
Survey
AOM
Reply With Quote
  #30  
Old 05-01-2008, 01:26 AM
  imexhouse's Avatar 
imexhouse imexhouse is offline
 

eXpert
  
Join Date: May 2006
Location: Canada
Posts: 377
 

Default Re: Keeping the users loged in and keep anonimous users cart content

Another possibility is that all the users that visited my website before I made the change to 300 seconds (from 6 months), had their sessions registered already and changing the expiry period to 300 wouldn't affect them, but would only apply to new users.
__________________
Jack@AquasanaCA
X-CART GOLD 4.0.19 Live
DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts
AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America!
X-CART GOLD 4.4.5 Live
CDSEO Pro v. 1.8.4
AquasanaMontreal.com
Aquasana╝ & Rhino Water Filtration Systems
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:10 PM.

   

 
X-Cart forums © 2001-2020