On Sun, Mar 11, 2012 at 11:04, slah <[email protected]> wrote:
> Hi Derrel, Hi all of you,
>
> I'm using rpcphp and I wonder
>
> 1. howto force session usage so users cannot issue any rpc requests unless
> they already opened a session. and how to get sessionID.
>
PHP provides session mechanism. It's been many, many years since I've
actually used the RPC PHP implementation that I wrote, or in fact, since
I've even used PHP. When I wanted to do something similar to what you're
requesting (only allow the RPC to be executed if the user was logged in), I
sent back an RPC error code that indicated that the user was not logged in,
which caused the frontend code to display a login form.
> 2. is it possible once a session is opened to maintain a single database
> connection (MySQL) and use it for all future requests within the same
> session. My assumption is that using same db connection will speed up
> server
> replies, is that true?
>
When last I used PHP, I do not believe it supported persistent database
connections. I would not surprise me at all if it now does. Sorry I'm not
of more help. Hopefully someone else will chime in with a more complete
answer.
Cheers,
Derrell
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel