How are you authenticating? LDAP? Another dedicated server?
Do you really need something as formal as an http session when you can just keep
a dictionary of properties on your app? Its not really the same as a web 
interface where
the pages can refresh and the concept of sessions need to maintain state with 
the server.
Your entire state can be kept right where on the application itself. 

How much security do you need? For instance, I have an app at work that sets
the interface to either READ or EDIT mode depending on the group the current
user is in, in the LDAP. So when the app starts, I check their login against 
LDAP, and
if they are a Lead then they have EDIT mode. When the widgets load, they can 
check
for that value and control the read-only state of the forms.

In terms of the equivalent of an http session, that would mean you want to keep 
a session
key locally only, and all properties are actually kept on a server that is not 
directly visable
by the client. Each action would have to provide the session key to the server, 
and then
the server would deliver some form of content. I dont know if it makes sense in 
a desktop
application though. Auth once and store the state locally I think.


On Dec 27, 2011, at 11:44 PM, Panupat Chongstitwattana wrote:

> Sorry if this is not directly a Maya question.
> 
> For my current project I'm making PyQt GUI to be used in Maya. One of
> my requirement is that users need to login with username and password
> first.
> 
> After authenticating the account, I'm not sure how I can store the
> session. I tried Cookie.Simplecookie but I guess it doesn't wok
> because the GUI is not running through HTTP.
> 
> Any suggestion appreciate.
> 
> -- 
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings: 
> http://groups.google.com/group/python_inside_maya/subscribe

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to