Running More Than One Firefox Sessions

Four Gmail sessions

I thought this is clearly obvious, but some people seems to be amazed that I can run four [Gmail](http://mail.google.com) sessions simultaneously. I even have been accused that I must be faking this screenshot :). No it is not fake, the trick is to run different Firefoxes with different username but all are using the same display. Different user means different cookie set, and different Gmail session.

Follow the these steps to spawn a new Firefox session:

1. Create a new user if you haven’t done so.

2. Note the display identifier used by current X session: `echo $DISPLAY`

3. Disable X authentication: `xhost +`, warning: this will disable authentication for X, this is a security hole if your X allows remote connections (which my Gentoo box doesn’t by default)

4. Switch to the new user: `su – newuser`

5. Change the DISPLAY variable to match step 1, for example: `export DISPLAY=:0.0`

6. Run Firefox: `firefox &`

Needless to say, this trick will also work for Yahoo, MSN, and all web sites using cookie based authentication that won’t allow multiple logins to the same site.

47 comments

  1. om Priyadi, aku ndak ngerti yg bagian:

    echo $DISPLAY
    xhost +
    su – newuser
    export DISPLAY=:0.0
    firefox &

    bisa dijelaskan dengan bahasa non-IT gak?

  2. kalo pake WinXP+IE gak perlu repot begitu. cukup punya akon lebih dari satu, bisa nge-junk di id-gmail :d

    *kabuur*

  3. Start firefox with:
    firefox -ProfileManager

    You can create different profile in Firefox with different sessions, cookies, etc.

  4. Kalo gue dengan cueknya men-SSH mesin gue sendiri dengan option -X atau -Y, jadinya gue gak perlu repot urus urus X tunneling, langsung dikerjakan ama SSH-nya :D

    Berhubung udah gak punya WinXP, Fast User Switch itu bisa runing multiple user di console yang sama kagak yah?

  5. wah ribet amat :-”

    kalo gue sih cukup pake ProfileManager-nya Firefox,

    $firefox -ProfileManager

    trus bikin profile baru, sebanyak window firefox yang mau dibuka, trus buka firefox pake masing-masing profile, bisa lewat ProfileManager, atau langsung

    $firefox -P nama_profie

    and, voila! bisa login dengan beberapa akun gmail :D

    dan harusnya bisa di Windows ;;)

  6. #2 Golda harus pakai Operating System yang memang di-desain untuk multi user dulu, baru bisa memakai trik ini. Kalau di PC ya paling populer pakai Linux

  7. #10 Whoa, TFYI !!
    Saya juga mikir hal ini bisa diaatasi dengan multi-profile, karena dia akan bikin directory terpisah. Waktu pakai Netscape dan Mozilla, biasanya beginian juga. Cuman waktu install Firefox, si Profile Manager ini gak nongol di Gnome Panel, makanya gue pikir gak bisa multi profile dianya. Ternyata bisa toh :D
    Again, TFYI

  8. #2 Kalau pakai Windows dan Internet Explorer :

    – Jalankan Internet Explorer, buka gmail account 1
    – Jalankan Internet Explorer, buka gmail account 2
    – Jalankan Internet Explorer, buka gmail account 3
    – Jalankan Internet Explorer, buka gmail account 4

    Dst. :) Tidak perlu jalankan perintah yang aneh-aneh.

  9. Setuju dengan Dedhi, pake ssh -X atau -Y lebih gak pusing.

    Itu xhost +localhost mungkin lebih baik sedikit ketimbang sekedar xhost + aja.

  10. Tapi di Windows tetep ga bisa sih kayak Mas Priyadi bisa dipake buka 4 account GMail simultaneously. Musti diclose dulu ganti profile. Ga praktis …. :(

  11. Bisa aja di Windows simultaneously kalo mau. Install X server dulu (misalnya pake Cygwin/X), trus pake lah cara di atas utk redirect display firefox dr any unix/linux box. :D

  12. #17 Apa perlu dibikinin video screen capturenya ? :D Btw, ini pakai IE ya, bukan Firefox.

  13. seep deh pak…

    walau ga begitu ngerti, entar tak cobain…

    trims n sering2 bagi elmunya pak…\:d/

  14. #24: heran deh, secara teori sih gak bisa, bener kata jefri, cookienya pasti dishare. soalnya dulu pernah jungkir balik modifikasi aplikasi web supaya bisa multiple login. kecuali mungkin kalau IE cuma ngesave cookie cuma waktu keluar. nanti deh dicoba kalau lagi dekat komputer windows.

  15. #29 #17

    kalo IE mo beda session,
    buka-nya harus dari start -> IE
    IE yg kebuka coockie-nya di catet beda

    kalo pake file -> new window
    cookie-nya dicatet sama

  16. hidup om pri! gw lupa kalo ternyata ada cara “xhost +” !! wakakkaa..

    sekarang gw gak perlu pake SSH X11 forwarding lagehh..

    Gw make SunRay yg isinya bener2 cuma display doang. Semua di server. Lalu gw punya satu server lagi yg isinya program yg perlu gw jalanin. Selama ini gw pake X11 forwarding itu dan rasanya lemot benerr..

    dengan cara ini, semua senang :D

    di SunRay yg gw pake: xhost +
    trus ssh ke server atunya lagi: export DISPLAY=ipaddr-server-sunray:display

    trus jalanin sperti biasa :D

  17. alternatif susah : x account gmail = x computer
    contoh : 5 account gmail = 5 computer
    bikin jaringan, pake kabel aja yang murah + switch, jadiin salah satu computer sebagai gateway komputer, sharing internet nya. jalanin dah tuh browser di masing masing komp os terserah

  18. #31, lah pake ssh kan lebih gampang toh, tinggal `ssh -X user@server namaprogram` dr client, kok malah nyari yg susah, hehehe.

    #37, kalo gaim sih gak usah multiple instance atau multiple user utk jalanin bbrp gaim, bisa multiple YM (atau account IM lain) dr satu instance gaim yg sama.

  19. Ada yang dah nyoba pake “Run as” di windows XP?? He he.. lumayan ribet juga kalo bisa, kudu bikin banyak user (yang artinya bikin dir gede di “Documents and Settings”).

    Sorry.. masih pake win2k :P

  20. Uhm… not for being rude but… Who on earth wanted to run many gmail account at the same time… unless the person wanted to do something that is ethically questionable :-w

  21. #43: ah, asalkan mengikuti aturannya Gmail menurut saya sah2 saja punya beberapa account gmail, kecuali kalau misalnya mau dipake sebagai file server ;)

    disclaimer: cuma punya satu account gmail :)

  22. Kok pada bingung ya buka Gmail bareng gitu ?

    Aku sih PD aja biar buka Gmail 4 sekaligus, masalahnya, Gmail itu apaan sih ?

    “Uhuuuy…hare geeeene…”

Leave a Reply to paydjo Cancel reply

Your email address will not be published. Required fields are marked *