The URL host name is part of request.client, which is used as the prefix 
for the session ID -- so switching from localhost to 127.0.0.1 causes a new 
session ID (and therefore session file) to be created.

Anthony

On Friday, June 14, 2013 4:26:21 AM UTC-4, Serge Bourgeois wrote:
>
>
> I tought that localhost and 127.0.0.1 were equivalent, but it looks not. I 
> 'd like to understand the difference.
>
> After auth authentification in a CAS, the system redirects correcty to 
> localhost:8000/myapp/default/index.
> Now, in a controller action, if I redirect again, for instance to 
> 127.0.0.1:8000/myapp/myactionfile/myaction, then auth.user.id seems to be 
> lost. And if myactionfile/myaction is decorated with 
> @auth.requires_login(), the user has to identify again....
>
> Thanks for any clarification on this subject.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to