X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Keeping the users loged in and keep anonimous users cart content (https://forum.x-cart.com/showthread.php?t=39395)

virtual@croatia 04-30-2008 03:33 AM

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).

imexhouse 04-30-2008 03:50 AM

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...

imexhouse 04-30-2008 03:54 AM

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..

virtual@croatia 04-30-2008 05:32 AM

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.

virtual@croatia 04-30-2008 05:40 AM

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 :-).

imexhouse 04-30-2008 07:29 AM

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!

virtual@croatia 04-30-2008 07:32 AM

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.

imexhouse 04-30-2008 02:41 PM

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.

virtual@croatia 05-01-2008 01:06 AM

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.

imexhouse 05-01-2008 01:26 AM

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.


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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.