1) I have an intranet app (on average no more then 15 concurrent users) that routinely 
generates 450KB sessions with no problems so
far.  I  use the memory session store.

2) If you set the session store in Application.conf to file you can look in the 
sessions directory of your APPWORKDIR and see the
pickled session data.
Also try some code like this:
from SecurePage import SecurePage

class Status(SecurePage):
 def __init__(self):
  SecurePage.__init__(self)

 def writeContent(self):
  for sess in self.application().sessions().keys():
   self.writeln('<br><br>Session Key: %s' % sess)
   thisSession = self.application().session(sess)
   for key in thisSession.values().keys():
    self.writeln('<br>%s : %s' % (key,thisSession.value(key)))

3)  If you are using Javascript you can create your own URL encoding
like:
 op = document.combo_box.op.value;
 DNField = document.combo_box.DNField.value;
 window.open("popfetchDN?" + op +";" + DNField, + ",
gofetch","toolbar=no,menubar=no,location=no,directories=no,status=no,resizeable=no,width=100,height=100,left=100,top=100");

Then you have to manually decode the query string

Using POST is a better option if you just want to make the URL cleaner.

-Aaron

----- Original Message -----
From: "Costas Malamas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 04, 2002 10:56 AM
Subject: [Webware-discuss] Capacity and scalability of Session?


>
> I am considering caching an array of objects as a Session variable, so that
> it can persist across page views. I am thinking just 50 elements or so will
> be enough, with a re-caching hook at the end --which is a nice excuse to
> play with iterators :-)
>
> Now, I have a couple of questions for all of you webware gurus:
>
> 1.  Assuming the size of an object is, say, ~512 bytes, at 50 items that's
> ~25k per session.  These days it's not much, but if I get so lucky as to
> have say, 100 concurrent users, we're talking 2.5MB of RAM, which is not
> much these days, but the purist in me worries: what happens with hanged
> sessions, sessions that have been abandoned and are still hanging around,
> etc?  So, I guess my question is, how does WK handle storage of session
> variables, i.e. transition from in-Ram to .ses files, balancing of
> resources, etc.
>
> 2.  How can I eyeball how much memory each object will take? is the size of
> a pickled representation good enough? (i.e. what happens in RAM to methods
> of an object, etc?)
>
> 3. OT: is there a way to clean up the URL sent to the client? i.e., if a
> form is sending a massive GET to a servlet, can this servlet take out all
> the ?a=x&b=y crap ?
>
> Thanks in advance,
>
> Costas
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
>
>
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss



_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to