I think you are going about this the wrong way. I did an admin application that allows the admin to browse all providers, then view the page as the provider themselves would view the site, changing menus dynamically etc...
But it is all in your Admin application design trying to flip sessions back and forth I don't think it is possible with the authentication system. You also don't need to change sessions to have the site work the way you want. It is more about having your permissions set correctly and then giving the admin rights of both permissions. Then have your URLS so they can accept an optional user id allowing you to provide that and view the site as if you were that member. Of course make sure you only allow that feature with specific groups. I am sure there are many other ways to do what you are looking for but that is how I handled it and it works flawless. On Wed, Aug 24, 2011 at 2:45 PM, Vincent Catalano < [email protected]> wrote: > I have an administrative section in my application which allows a user to > manage other users on the site. I want to give the administrator the ability > to login as a given user and "Act as" them. During this time, there would be > a menu bar at the top of the screen with the option to exit out of the > regular user's session and return to being an administrator. Could anyone > give me some direction as to what are some best practices for this as well > as how one could accomplish this using repoze.who for authentication? > Thanks! > > -- Vincent Catalano > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" 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/pylons-discuss?hl=en. > -- -- Regards, Bruce Wade http://ca.linkedin.com/in/brucelwade http://www.wadecybertech.com http://www.warplydesigned.com http://www.fitnessfriendsfinder.com -- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en.
