[Zope] sessionId +

Chris McDonough chrism@zope.com
24 Apr 2003 09:38:03 -0400


This is from the code that generates browser ids:

    """ Returns 19-character string browser id
    'AAAAAAAABBBBBBBB'
    where:

    A == leading-0-padded 8-char string-rep'd random integer
    B == modified base64-encoded 11-char timestamp

    To be URL-compatible, base64 encoding is modified as follows:
      '=' end-padding is stripped off
      '+' is translated to '-'
      '/' is translated to '.'

    An example is: 89972317A0C3EHnUi90w
    """

You can call a function in Products.Sessions.BrowserIdManager named
getNewBrowserId to get a new browser id.

It is not possible to possess different sessions from different browser
windows unless you manage the browser id manually in each window.

On Thu, 2003-04-24 at 06:08, Ulla Theiss wrote:
> Hello list,
> 
> What is the information the session-IDs consists of (of course in
> crypted form)?
> Or asked in another way: What are the criteria to create a new one?
>    I think it's something like:
> 	    - browser id
> 			Here is also the question: What is in it?
> 			    - user
>                             - kind of browser (e.g. netscape, ie) 
>                             - client hostname
>                             - ???  
>             - timestamp (or better: the previous session has ended)
> 
> Is there a possibility to differ requests sent from different browser
> windows?
> 
> Thanks in advance,
> Ulla.
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )