MozillaZine

Opening new window with a new session

User Help for Mozilla Firefox
(Anonymous/guest posting allowed)
ivegner
Guest
 
December 17th, 2004, 3:34 pm

Post Posted December 17th, 2004, 3:34 pm

I work with: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

I'd like a newly opened MFirefox window to be opened with a new session.

For example, assume I have an opened window in which I'm logged in on some forum. I'd like to have one more window in which I'd be logged in as some other user on the same forum. The forum is programmed so that I have to be logged off in order to log in - it's only logical.
But as I open a new Firefox window and visit the forum, I find out that I'm also logged on in the new window! (if I'd used IE, the new window would have a new session and thus I wouldn't be logged on in the new window)

And so my questions are:
1. Is the stuff I have written above understood?
2. Is it possible to obtain my desire?
3. How should I act to obtain it?

Zmodem
 
Posts: 32
Joined: July 11th, 2003, 11:39 am
Location: Pacific Northwest
December 17th, 2004, 3:48 pm

Post Posted December 17th, 2004, 3:48 pm

Not sure if this is possible or not. But I do know, that most forums prohibit more than one account per person.

--cheers
http://www.hobbycode.com
XUL Tools for Homesite

JrzyCrim

User avatar
 
Posts: 4959
Joined: July 8th, 2004, 9:16 pm
December 17th, 2004, 4:02 pm

Post Posted December 17th, 2004, 4:02 pm

1) Yes
2) Yes
3) This will necessitate using two separate profiles simultaneously. You won't be able to do it with the same profile.

If you don't have two profiles, you will need to create a new profile:
Go to Start > Run, enter: firefox.exe -p
Create a new profile

In order to use two profiles at the same time, this variable needs to be set: MOZ_NO_REMOTE=1

Go to Control Panel > System > Advanced > Environment Variables > System Variables > New
Variable Name: MOZ_NO_REMOTE
Variable Value: 1
Click OK, OK, OK

Next, make two shortcuts for Firefox. Each shortcut will be used to launch FF with a different Profile. The target in the shortcut properties will look something like this:
Code: Select all
Target: "C:\Program Files\Mozilla Firefox\firefox.exe" -p "profile name"


You should now be able to launch two separate Firefox sessions.
Last edited by JrzyCrim on December 19th, 2004, 11:18 pm, edited 1 time in total.

ivegner
Guest
 
December 18th, 2004, 3:15 pm

Post Posted December 18th, 2004, 3:15 pm

It is sophisticated a bit...
BUT IT WORKS!

Thanks a lot.

PS. I wonder why the program's documentation doesn't contain anything about profiles and sessions.

the-edmeister

User avatar
 
Posts: 28252
Joined: February 25th, 2003, 12:51 am
Location: Chicago, IL, USA
December 20th, 2004, 2:19 pm

Post Posted December 20th, 2004, 2:19 pm

ivegner wrote:It is sophisticated a bit...
BUT IT WORKS!

Thanks a lot.

PS. I wonder why the program's documentation doesn't contain anything about profiles and sessions.


I have tried that and it works for me!

Not really all that 'sophisticated' - actually very elegantly simple! The simplest I have come across in the last 6 months. The other solutions all involved creating batch files or .cmd lines.

As far as documentation - probably works differently with different OS's. Heck there has even been talk about doing away with the Profile Manager entirely.

BTW; I use W2K and have been able to have 7 different versions/installations (each with its' own Profile) running simultaneously. A 'feat' I was unable to accomplish since the 0.9 versions of Firefox came out in June.
- ASUS eeePC 900 20GB SSHD 1GHz DDR2 - Xandros -
- Athlon64 2.2Ghz 2Gb DDR800 - W2K SP4 & Ubuntu 8.04 -
- PII 350MHz 768Mb RAM - W2K SP4 -- You can't fix stupid! - the Ron White tour

steve1000
 
Posts: 73
Joined: February 3rd, 2005, 2:40 am
Location: Melbourne, Australia
February 19th, 2005, 7:35 pm

Post Posted February 19th, 2005, 7:35 pm

Steve1000 http://forums.mozillazine.org/viewtopic.php?t=211311 wrote:
"Firefox not handling session cookies as well as IE

IE does a very good job at handling session cookies where: Any window launched from a browser window (window.open(), file>new>window, ctrl-N, ctrl-T open link in new window...)
should share the same session cookie. Any new Browser window launched from the Operating
System level icon or menu should have it's own session cookie.

This means that with Firefox I cannot simultaneously login to different accounts...as I can
with IE. "



In that thread the suggestion to avoid the session cookie problem was a link to here and to use multiple profiles.

But will I need maintain seperate Firefox profiles?

i.e., it appears that you need to setup (and maintain) all your Firefox extensions for each profile...or is it possible to copy extensions from one profile to another?

Thanks

soundman65
Guest
 
February 26th, 2005, 12:33 am

Post Posted February 26th, 2005, 12:33 am

Now, here's a big question - I'm doing this (running two profiles at once), and I'd like to know if it's possible to get external links to work the same way. Basically, I'd like to use profile1 for pretty much everything. The only time I want to use profile2 is when I specifically click on the shortcut I made with the -p "profile2" command.

Is this possible? I went and messed with the file types in folder options, and added -p "profile1" and thought I had it working - clicking on a link in an external program launched profile1, so did opening an html file i had saved.

But then something happened and firefox asked if I wanted to set it as the default browser. With both profiles open, external links brought up the profile manager which is no help since both of them are already in use. I'll probably mess around with this a little more, but if anyone has any good advice, let me know!

steve1000
 
Posts: 73
Joined: February 3rd, 2005, 2:40 am
Location: Melbourne, Australia
February 26th, 2005, 1:22 am

Post Posted February 26th, 2005, 1:22 am

soundman65

I continued this topic at: http://forums.mozillazine.org/viewtopic.php?t=223531
and it relates to problems with external links.

I was contacted by Vectorspace, User Support Moderator. He pointed to:

http://forums.mozillazine.org/viewtopic.php?t=215734

This thread explains a method to set MOZ_NO_REMOTE, start an application with profile manager, then set MOZ_NO_REMOTE back, all with a single batch file/shortcut.

e.g., MOZ_NO_REMOTE=1 lets you start an application with the profilemanager

@echo off
set MOZ_NO_REMOTE=1
start thunderbird.exe -p "profile name"
set MOZ_NO_REMOTE=0

This example starts thunderbird.exe, but I think you would want to change it firefox.exe for your profile2.

Guest
Guest
 
February 27th, 2005, 4:24 pm

Post Posted February 27th, 2005, 4:24 pm

Ok, interesting problem. I deleted MOZ_NO_REMOTE from where I had entered it. When opening firefox from the shortcut I can open multiple windows fine without profilemanager popping up, but it still comes up when I click an external link. I'm stumped. The batch file thing works perfectly, but I can't get the external links back to normal.

soundman65
Guest
 
February 27th, 2005, 4:25 pm

Post Posted February 27th, 2005, 4:25 pm

That was me, sorry I forgot to put in my name

steve1000
 
Posts: 73
Joined: February 3rd, 2005, 2:40 am
Location: Melbourne, Australia
February 28th, 2005, 2:01 am

Post Posted February 28th, 2005, 2:01 am

Hi soundman65

I'm not sure of what you are doing, and I haven't actually used the batchfile...

but if you have deleted MOZ_NO_REMOTE from your environment,

you should be able to run Firefox without any link problems from a simple shortcut that does NOT set MOZ_NO_REMOTE (not a batchfile).

I suspect that you would only need to use the batchfile to set MOZ_NO_REMOTE to one, start Firefox and then reset MOZ_NO_REMOTE back to zero, when you wanted to start a second profile.

Does that help?

Vectorspace
Moderator

User avatar
 
Posts: 13932
Joined: November 27th, 2003, 4:50 am
Location: Warwickshire, UK
February 28th, 2005, 2:39 am

Post Posted February 28th, 2005, 2:39 am

soundman65: A restart of your computer might help. I remember someone else using this method having the same problem, but it went away randomly. I suggest checking Environment Variables and making sure that MOZ_NO_REMOTE has been deleted, then restart your computer.

Also, if you use this batch file method, external links will open in the most recent profile opened instead of a specific one. ANd, once you've closed Firefox completely, the next time you start it it will be the last profile opened.
"All things being equal, the simplest answer is usually the correct one" - Occam's Razor
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
Thunderbird version 2.0.0.23 (20090812)

soundman65
Guest
 
February 28th, 2005, 10:29 am

Post Posted February 28th, 2005, 10:29 am

Thanks, restarting fixed it. I was quite confused there for a second!

coolsti
 
Posts: 12
Joined: January 13th, 2005, 5:15 am
March 2nd, 2005, 1:45 pm

Post Posted March 2nd, 2005, 1:45 pm

From this thread, and my own experiences, it seems like Firefox was not designed very well with regard to handling sessions. I have a server running several database applications, all of which require a log in. This means that with Firefox, I cannot simultaneously log in and use more than one of these applications at a time, unless I go through the trouble to set up this environment variable, and manually create additional profiles. And this would not be possible to do at all if I am using one of our laboratory computers where I don't have the administrative authority to create this environment variable.

It is amazing to me that Firefox was not designed like (the usually more troublesome) Internet Explorer, where each window opened by the OS automatically creates a new session. In this regard, Firefox is in fact a security hazard for our applications: if a user in one of our labs finishes a session but forgets to click on that log out button and just closes the browser window (a very common occurrance) while another Firefox window on the computer is still open (looking up a traffic report, for example), then any other person can get steal that user's session just by opening up another Firefox window and navigating to the application's URL. This second user would not need to log in, and would be using the identity of the first user.

So there are definitely two problems here: not being able to use two different applications requiring authorization on the same remote server simultaneously, and not killing a session when the session window is closed. Shouldn't the way Firefox handles sessions be redesigned?

Vectorspace
Moderator

User avatar
 
Posts: 13932
Joined: November 27th, 2003, 4:50 am
Location: Warwickshire, UK
March 2nd, 2005, 1:51 pm

Post Posted March 2nd, 2005, 1:51 pm

Firefox cannot log in to the same page twice, but it can certainly log in to different applications simultaneously.
"All things being equal, the simplest answer is usually the correct one" - Occam's Razor
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
Thunderbird version 2.0.0.23 (20090812)

Return to Firefox Support


Who is online

Users browsing this forum: therube and 9 guests