Hi Wasfi,

Use gaesessions. I am using this library and its very lightweight and
robust. and can be used with webApps framework.

it can be configured to use cookies, memcache and the datastore.

read the advantages here : https://github.com/dound/gae-sessions

and then follow the directions to install it,

Installation is very simple and requires < a minute to get started .

After that when the user logs in, you can store the users id or key in the
session

session['uid'] = value


and in the subsequent classes or main handler you can check if the
session['uid'] has a value.

if not then the user is not logged in, and you redirect her to the login
page.

hope this helps :)




Warm Regards
Sarfaraz Farooqui
--
Strong and bitter words indicate a weak cause




On Sun, Dec 19, 2010 at 6:57 PM, Mohamed Wasfi <[email protected]>wrote:

> I am developing an app where I don't want to force the users to use
> google authentication or openID but just sign in with their basic e-
> mail addresses. I will create the login and logout pages myself. Can I
> get a suggestion on how to keep track of the current user in the
> session like what "user = users.get_current_user()" does. Maybe use
> memcache?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine%[email protected]>
> .
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to