1

I want to store values in variables to access form another page (a.k.a State management).

Now I cannot use sessions since I have multiple Zope instances & if one fails the user need to be redirected to another Zope instance and one session is valid only for one Zope instance.

Now my remaining options are

  1. submit a Hidden input tag using POST method
  2. Passing through URL with GET method
  3. Using cookies
  4. Using Database (which I think is 'making simple things complex'.)

I am not even considering the first 2 methods and I think using cookies is not secure.

So is there a commercial or open source module that can securely (encryption etc.) do cookie management.

If not I will have to use a database.

Please inform me, if I am missing something.

Version - Zope 2.11.1

4

1 に答える 1

0

Zope 2 に組み込まれている SESSION サポートは、実際にはセッションを ZODB の一時パーティションに保持するため、同じ ZEO サーバーに接続する複数の Zope クライアントに対して実際に有効であると思います。これのコストは、すべてのセッションの変更がトランザクション機構を呼び出し、結果としてコミットされることです。そのため、PAS 認証のような非常に低レベルで SESSION を使用していないことを確認してください。そうしないと、コミットが毎回 ZODB にヒットします。画像、CSS ファイル、および JS ファイル。

于 2011-08-12T10:26:05.353 に答える