[google-appengine] Re: users.get_current_user() returns previous logged out domain user

2009-05-16 Thread Parth Tamhaney
Hi Peter,

You were right. The cookies persisted.
I did not want the user to manually delete the cookies so I deleted the
cookies using javascript on each logon.
Sorry for the very late reply.
Thanks for your suggestion:-)

Parth


On Sat, Mar 28, 2009 at 10:17 PM, Peter Cooper 
petercoo...@pgctesting001.com wrote:

 Parth,

 I would clear all cookies and then try logoff/logon again. If that doesn't
 work, then do a work around. I haven't done any gadget connection work
 between Sites and GAE, but I would be surprised if Google created persistent
 session stores of logon information between a gadget and GAE. Logon info
 that persists after a logoff suggests a cookie to me. Would be interested in
 the solution, if you have time to post it.

 Peter


 On Fri, Mar 27, 2009 at 12:09 AM, Parth parth...@gmail.com wrote:


 Hi,

 I have a GAE app that is restricted to a domain and I access this GAE
 App using its url in a Google Gadget.

 It works fine but the problem happens when I logout of the domain and
 then login again as another user of same domain.
 When I login as the second user, users.get_current_user() still
 returns me the previous logged out user .

 I Have added the Gadget to my page on Google Sites.

 For instance, If my domain is foo.com

 I have a page mypage on foo.com

 On this page I have added a Google Gadget that has content type Url
 and src set to my GAE app.

 Hope this explains the problem.







 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: users.get_current_user() returns previous logged out domain user

2009-03-28 Thread Peter Cooper
Parth,

I would clear all cookies and then try logoff/logon again. If that doesn't
work, then do a work around. I haven't done any gadget connection work
between Sites and GAE, but I would be surprised if Google created persistent
session stores of logon information between a gadget and GAE. Logon info
that persists after a logoff suggests a cookie to me. Would be interested in
the solution, if you have time to post it.

Peter

On Fri, Mar 27, 2009 at 12:09 AM, Parth parth...@gmail.com wrote:


 Hi,

 I have a GAE app that is restricted to a domain and I access this GAE
 App using its url in a Google Gadget.

 It works fine but the problem happens when I logout of the domain and
 then login again as another user of same domain.
 When I login as the second user, users.get_current_user() still
 returns me the previous logged out user .

 I Have added the Gadget to my page on Google Sites.

 For instance, If my domain is foo.com

 I have a page mypage on foo.com

 On this page I have added a Google Gadget that has content type Url
 and src set to my GAE app.

 Hope this explains the problem.




 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: users.get_current_user() returns previous logged out domain user

2009-03-28 Thread gops

can you make sure using firebug--or something-- that your browser
actually make the request ...

i had this problem before and i had to add random number at the end of
the url to make it request again...

can anyone tell , which should be the ideal response in terms of
Expire date , Cache control  or Last modified for authenticated
pages ,
i think the default response is not working here.is there anybody
who has the same problem??

On Mar 27, 12:09 pm, Parth parth...@gmail.com wrote:
 Hi,

 I have a GAE app that is restricted to a domain and I access this GAE
 App using its url in a Google Gadget.

 It works fine but the problem happens when I logout of the domain and
 then login again as another user of same domain.
 When I login as the second user, users.get_current_user() still
 returns me the previous logged out user .

 I Have added the Gadget to my page on Google Sites.

 For instance, If my domain is foo.com

 I have a page mypage on foo.com

 On this page I have added a Google Gadget that has content type Url
 and src set to my GAE app.

 Hope this explains the problem.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---