We just JSON.encode the PHP sessions before sending it to our memcached 
cluster, which makes sure you have a cross language compatible encoding.

On Sunday, February 12, 2012 at 9:50 AM, Joe Developer wrote:

> Hiyas,
> 
> I am wondering if any of you beautiful people might have had occasion to 
> write a parser for what PHP Sessions dump in memcached?
> 
> I am looking at stuff like this:
> 
> auth_user|a:24:{s:7:"user_id";s:7:"3348537";s:8:"username";s:6:"JoeDev";s:6:"access";s:2:"10";
>  ... } 
> 
> And while the first tuple made me optimistic while under the naive hope that 
> s:7 was an identifier, I had to accept that it actually denotes 
> String:StringLength. 
> 
> Anyone have something for the pain?
> 
> Cheers,
> -- Joe
> 
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected] 
> (mailto:[email protected])
> To unsubscribe from this group, send email to
> [email protected] 
> (mailto:[email protected])
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to