Launch application in gnome session of another user.

A gnome session is launched by UserA of System A, I am connected to userB of System B(or A) through PUTTY. I want to launch an application for eg: gedit through Putty in the display of system A. how can I achieve this.
for eg:-
root is logged in to System A, with gdm.
DISPLAY=0.0, ip = aa.aa.aa.aa

User Sivam is logged into putty console.
He has to launch gnome-terminal in root's session using putty..

what are the configurations steps to be taken.

Did you try to use different DISPLAY? Set different display on second console and try like DISPLAY=0:1

Try doing:

su - USER_A -c "xauth add `xauth list :0.0`; DISPLAY=:0.0 program-you-wish-to-launch"

how about using ssh with another machine ( user on another machine ) and launching an application from that.

If X is running on the machine where you ssh to:

DISPLAY=:0.0 XAUTHORITY=/home/user_running_X_on_the_display/.Xauthority your-program