Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 1.8.x

Best practices for storing PHP sessions with a couchbase cluster?

1 reply [Last post]
  • Login or register to post comments
Thu, 03/15/2012 - 11:49
brianjcohen
Offline
Joined: 03/15/2012
Groups: None

I'm new to Couchbase and I'm evaluating it as a store for our PHP sessions. I followed this tutorial:
http://www.startupnextdoor.com/2011/11/how-to-cache-php-sessions-in-memb...

In that setup, PHP is configured to use 'memcached' as the session.save_handler and points the session.save_path at the host:port of the single couchbase instance. Seems to work okay but I have a question regarding SASL authentication. I dropped the default bucket and re-created it with a password. I'm seeing sketchy documentation as to whether the aforementioned php5-memcached library can talk SASL, and if so, how would I configure session.save_path to perform this authentication? Would I need to write a custom handler that uses Couchbase's PHP client and make use of session_set_save_handler() ? Or can I somehow otherwise use ext/couchbase ?

Top
  • Login or register to post comments
Sat, 06/02/2012 - 07:57
sr78ger
Offline
Joined: 06/02/2012
Groups: None

Hi Brian,

maybe you want to take a look at moxi

http://www.couchbase.com/docs/moxi-manual-1.8/

http://www.couchbase.com/docs/moxi-manual-1.8/moxi-standalone-config-adv...

Stefan

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker