Re: [google-appengine] Re: auto-logout user ?

2010-01-26 Thread Danny Tuppeny
Glad you got it sorted :-)

I thought you were trying to log the user out if they just left/closed their
browser, which would be a little trickier!

2010/1/26 Alex Nemoy 

> On Tue, Jan 26, 2010 at 7:45 PM, Danny Tuppeny  wrote:
>
>> If you mean fetching it server-side, then that won't work. I can't
>> think of any nice way to do what you want, though there is a tickbox
>> that says "Keep me signed in". If the user ticks this, surely that's
>> what they want?
>>
>> Not sure if I was clear enough in the OP, I wanted I way of logging the
> user out after an operation is finished.
>
> Turns out it works using
> self.redirect(users.create_logout_url('/whatever'))
>
>  --
> 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-appeng...@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.
>

-- 
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-appeng...@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.



Re: [google-appengine] Re: auto-logout user ?

2010-01-26 Thread Alex Nemoy
On Tue, Jan 26, 2010 at 7:45 PM, Danny Tuppeny  wrote:

> If you mean fetching it server-side, then that won't work. I can't
> think of any nice way to do what you want, though there is a tickbox
> that says "Keep me signed in". If the user ticks this, surely that's
> what they want?
>
> Not sure if I was clear enough in the OP, I wanted I way of logging the
user out after an operation is finished.

Turns out it works using self.redirect(users.create_logout_url('/whatever'))

-- 
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-appeng...@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: auto-logout user ?

2010-01-26 Thread Danny Tuppeny
If you mean fetching it server-side, then that won't work. I can't
think of any nice way to do what you want, though there is a tickbox
that says "Keep me signed in". If the user ticks this, surely that's
what they want?

On Jan 25, 2:05 pm, Alex Nemoy  wrote:
> Can a user be logged out by the app without having to visit a logout url
> explicitly?
> Is creeting a logout url then fetching it a possibility?
>
> thank you
> N.

-- 
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-appeng...@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.