Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hi,

My host informs me that he will use a cluster of 3 servers and pages will be randomly processed by one of those. Could this be a problem for Couch ? I'm not sure if sessions are influenced when the server is switching from one to an other.

Thanks.
I load frameworks and write bugs on top of them, after that I rearrange the code so that it looks like a cool product.
It would probably be best to ask the host, but you can conduct a simple test:
Code: Select all
<?php

if (!session_id())
    @session_start();

if (!isset($_SESSION['test']))
    $_SESSION['test'] = rand();

echo $_SESSION['test'];
If the page outputs the same value after multiple refreshes, I think you can conclude that the session is maintained across the servers.
Thanks,

I did asked the provider about this ... it seems to switch from server very rarely and only when there is to much traffic on one of the servers. Anyhow I will test with your code from time to time to see if this is an issue for me.

Thanks
I load frameworks and write bugs on top of them, after that I rearrange the code so that it looks like a cool product.
Tom,

The core code of Couch doesn't make much use of sessions.
Notable exceptions that do depend on sessions are -
1. CouchCart
2. cms:set_session/cms:get_session tags
3. Captcha

so if you are not using any of the above mentioned features, I think you should be just fine.
4 posts Page 1 of 1