Re: logging in as user with admin account

2013-01-23 Thread Torrent Girl

 Expanding on what Russ said, we've got a mimic feature that takes a 
 logged in session user (session.user variable), moves it (session.
 originaluser) and then logs in the admin as the requested user to 
 mimic.  So there is a new session.user and the admin's own session.
 originaluser.  We have some functionality that should not be performed 
 while mimicking (so we check for a session.originaluser), and when the 
 admin is done, they stop the mimic, we delete the session.user and 
 move session.originaluser back to session.user and the admin is back 
 to him/herself on the site.
 


Coming back to this. I am going to try this out. Thanks 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354041
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: logging in as user with admin account

2012-07-25 Thread Byron Mann

How about running the site under 2 domains or cnames, and doing the sudo
log-in to the second.

Www.sitea.com logs into www2.sitea.com

Or

Sita.com logs into siteb.com

First example would require not using domain cookies in your application.

Byron Mann
Lead Engineer and Architect
Hostmysite.com
On Jul 24, 2012 2:31 PM, Torrent Girl moniqueb...@gmail.com wrote:


 Hi All.

 I am working on an app that needs to allow an admin to log in as a user
 but keep his/her session active.

 Any suggestions?

 I tried to force a different browser but from my research that is
 impossible.

 Also, I am not using URL params but the user info is set in session.


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351989
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: logging in as user with admin account

2012-07-25 Thread Torrent Girl

you really need to store the admin session in different variables to avoid
that problem.
try using session.user and session.admin for example.






Ah! I think this may work...will try it.

Tanks 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351991
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


logging in as user with admin account

2012-07-24 Thread Torrent Girl

Hi All.

I am working on an app that needs to allow an admin to log in as a user but 
keep his/her session active.

Any suggestions?

I tried to force a different browser but from my research that is impossible.

Also, I am not using URL params but the user info is set in session.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351972
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: logging in as user with admin account

2012-07-24 Thread Scott Stewart

On 7/24/2012 2:30 PM, Torrent Girl wrote:
 Hi All.

 I am working on an app that needs to allow an admin to log in as a user but 
 keep his/her session active.

 Any suggestions?

 I tried to force a different browser but from my research that is impossible.

 Also, I am not using URL params but the user info is set in session.


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351973
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: logging in as user with admin account

2012-07-24 Thread Russ Michaels

You could just  have a link to auto post the user login details to the
login page. Or you just manually create the user session so he appears as
logged in for that user.

Regards
Russ Michaels
On Jul 24, 2012 7:31 PM, Torrent Girl moniqueb...@gmail.com wrote:


 Hi All.

 I am working on an app that needs to allow an admin to log in as a user
 but keep his/her session active.

 Any suggestions?

 I tried to force a different browser but from my research that is
 impossible.

 Also, I am not using URL params but the user info is set in session.


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351974
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: logging in as user with admin account

2012-07-24 Thread Torrent Girl

You could just  have a link to auto post the user login details to the
login page. Or you just manually create the user session so he appears as
logged in for that user.

Regards
Russ Michaels
On Jul 24, 2012 7:31 PM, Torrent Girl moniqueb...@gmail.com wrote:




Russ I am passing the users login info but it overrides the admin's session. 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351975
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: logging in as user with admin account

2012-07-24 Thread Milner, Lincoln

Expanding on what Russ said, we've got a mimic feature that takes a logged in 
session user (session.user variable), moves it (session.originaluser) and then 
logs in the admin as the requested user to mimic.  So there is a new 
session.user and the admin's own session.originaluser.  We have some 
functionality that should not be performed while mimicking (so we check for a 
session.originaluser), and when the admin is done, they stop the mimic, we 
delete the session.user and move session.originaluser back to session.user and 
the admin is back to him/herself on the site.

-Original Message-
From: Torrent Girl [mailto:moniqueb...@gmail.com]
Sent: Tuesday, July 24, 2012 2:31 PM
To: cf-talk
Subject: logging in as user with admin account


Hi All.

I am working on an app that needs to allow an admin to log in as a user but 
keep his/her session active.

Any suggestions?

I tried to force a different browser but from my research that is impossible.

Also, I am not using URL params but the user info is set in session.




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351976
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: logging in as user with admin account

2012-07-24 Thread Russ Michaels

you really need to store the admin session in different variables to avoid
that problem.
try using session.user and session.admin for example.


On Tue, Jul 24, 2012 at 7:58 PM, Torrent Girl moniqueb...@gmail.com wrote:


 You could just  have a link to auto post the user login details to the
 login page. Or you just manually create the user session so he appears as
 logged in for that user.
 
 Regards
 Russ Michaels
 On Jul 24, 2012 7:31 PM, Torrent Girl moniqueb...@gmail.com wrote:
 
 


 Russ I am passing the users login info but it overrides the admin's
 session.


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351977
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm