List Info

Thread: Trying to get my head around cherrypy sesssion




Trying to get my head around cherrypy sesssion
user name
2006-04-24 18:54:47
My typical user will be accessing my service from multiple
machines.
I'm using cherrypy file storage sessions. My understanding
is that
sessions are associated with browser cokies. If auser logs
in from two
different machines, he will have two different cookies and
consequently
two different sessions. Is there a way to have the the two
different
machines/cookies share the same session?

I have serveral cherrypy servers and I would like for each
user to have
atmost one session, even if he accesses the service from
differnt
machines.

VJ


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

Trying to get my head around cherrypy sesssion
user name
2006-04-24 19:43:33
Another question on the file storage sessions. Are they
cached in
memory? or do they get read/and written to disk on each
accesss.

Vineet


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

Trying to get my head around cherrypy sesssion
user name
2006-04-25 05:40:51
pytrade a écrit :
> Another question on the file storage sessions. Are they
cached in
> memory? or do they get read/and written to disk on each
accesss.

They are read/written to disk on each access (the overhead
is not as bad 
as you think   )

Regards,

Remi.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

Trying to get my head around cherrypy sesssion
user name
2006-04-25 05:40:12
Hello,

> My typical user will be accessing my service from
multiple machines.
> I'm using cherrypy file storage sessions. My
understanding is that
> sessions are associated with browser cokies. If auser
logs in from two
> different machines, he will have two different cookies
and consequently
> two different sessions. Is there a way to have the the
two different
> machines/cookies share the same session?
> 
> I have serveral cherrypy servers and I would like for
each user to have
> atmost one session, even if he accesses the service
from differnt
> machines.

It seems like what you want is "user data" as
opposed to "session data", 
which is associated to "one session" (ie: a user
coming to the site, 
doing some work for a certain period of time and then
leaving).


You'll have to implement user data yourself. You can do
this using 
sessions, but you could also just use a table in a database
and 
store/retrieve the user data when he logs in/out.
Note that sessions normally expire afte a while whereas for
user data 
you probably don't want that data to expire.

Regards,

Remi.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )