Different session for same url

7 views
Skip to first unread message

Shiplu

unread,
Nov 29, 2009, 1:49:16 PM11/29/09
to mozilla-labs-prism
I think the subject explains what I require.

Here is what I require with example.

I create an app named app1 with url http://mail.google.com.
I open it. login and quit prism. The session persists. next time I
open app1 it directly goes to my inbox (as I am already logged in).

Now I create another app named app2 with url http://mail.google.com
(same url ! !) for another email account. Then I open it. It directly
goes to my inbox. But I thought It would show a login prompt. :o

Now my question is, "is there any way that each application will
maintain different session so that I can login with different
credential for the same url ? ".

Please dont think its gmail. I am using this as an example.

Also I dont want to see the profile chooser pop up comes everytime.
Every instance will use different profile.

Is it possible? If yes, How?


If its not the proper place to ask such question, please provide me a
direct link of group or irc channel where I can ask.

Thanks for help.

Shiplu

unread,
Dec 1, 2009, 4:44:38 PM12/1/09
to mozilla-labs-prism

Any Idea??

Jason Miller

unread,
Dec 1, 2009, 9:46:52 PM12/1/09
to mozilla-l...@googlegroups.com
The application.ini configuration file within your webapp directory points to a Firefox profile folder somewhere on your filesystem where your session and other profile information is stored. If you make a copy of that profile folder and give it a different (albeit similar) name, you can reference that new profile from within the second "gmail" prism application's application.ini config file. That should give you separate profiles for each Prism app, which will allow you to have independent sessions for Gmail.

- Jason

On Tue, Dec 1, 2009 at 4:44 PM, Shiplu <shiplu.net@gmail.com> wrote:

Any Idea??

--

You received this message because you are subscribed to the Google Groups "mozilla-labs-prism" group.
To post to this group, send email to mozilla-l...@googlegroups.com.
To unsubscribe from this group, send email to mozilla-labs-pr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mozilla-labs-prism?hl=en.



shiplu

unread,
Dec 2, 2009, 3:33:05 PM12/2/09
to mozilla-l...@googlegroups.com
I have these files for gmail. No applcation.ini.

gm...@prism.app/
gm...@prism.app/webapp.ini
gm...@prism.app/icons
gm...@prism.app/icons/default
gm...@prism.app/icons/default/app.png
gm...@prism.app/localstore.json

The contents of webapp.ini is,

[Parameters]
id=gm...@prism.app
uri=http://mail.google.com
icon=app
status=false
location=false
sidebar=false
navigation=false

How do I set the profile path for this app.

--
A K M Mokaddim
My talks, http://talk.cmyweb.net
Follow me, http://twitter.com/shiplu
SUST Programmers, http://groups.google.com/group/p2psust
Innovation distinguishes bet ... ... (ask Steve Jobs the rest)

Jason Miller

unread,
Dec 2, 2009, 3:42:24 PM12/2/09
to mozilla-l...@googlegroups.com
Those are the files in your webapp directory. the application.ini file is located in a subfolder of the folder where your application's executable is located.

What Operating System are you using?

Jason Miller
519.872.0797 // developIT // Jason Miller Design
Developer of amoebaOS, Shutterborg, Delitweet & more

shiplu

unread,
Dec 2, 2009, 4:21:43 PM12/2/09
to mozilla-l...@googlegroups.com
I use Ubuntu 8.10.
I found it here
/usr/share/prism/application.ini

This is the content.

[App]
Name=Prism
Version=0.8
BuildID=20071101
ID=pr...@developer.mozilla.org

[Gecko]
MinVersion=1.8.1.0
MaxVersion=1.9.0.*

[XRE]
EnableExtensionManager=1

Jason Miller

unread,
Dec 2, 2009, 6:05:18 PM12/2/09
to mozilla-l...@googlegroups.com
That is the application.ini file for Prism itself. The application.ini file for your Prism-based application will be located elsewhere. If you are using the Firefox extension, I believe it is located in a subdirectory of Prism's extension directory "refr...@developer.mozilla.org".



Jason Miller
519.872.0797 // developIT // Jason Miller Design
Developer of amoebaOS, Shutterborg, Delitweet & more

On Wed Dec 02 2009 16:21:43 GMT-0500 (EST), shiplu wrote:
I use Ubuntu 8.10.
I found it here
/usr/share/prism/application.ini

This is the content.

[App]
Name=Prism
Version=0.8
BuildID=20071101
ID=pr...@developer.mozilla.org

[Gecko]
MinVersion=1.8.1.0
MaxVersion=1.9.0.*

[XRE]
EnableExtensionManager=1


shiplu

unread,
Dec 2, 2009, 6:18:39 PM12/2/09
to mozilla-l...@googlegroups.com


On Thu, Dec 3, 2009 at 6:05 AM, Jason Miller <ja...@developit.ca> wrote:
That is the application.ini file for Prism itself. The application.ini file for your Prism-based application will be located elsewhere. If you are using the Firefox extension, I believe it is located in a subdirectory of Prism's extension directory "refr...@developer.mozilla.org".


There is no more application.ini

See the shell output.

$ locate application.ini
/usr/lib/firefox-3.0.15/application.ini
/usr/share/prism/application.ini

Thats it. only two.

Jason Miller

unread,
Dec 2, 2009, 6:41:53 PM12/2/09
to mozilla-l...@googlegroups.com
Interesting. There must be some major differences in the implementations for Mac and Linux. I had a thought - since you are using the Prism extension, and extensions are specific to your Firefox profile, you could just create a second Firefox profile with its own Prism extension installed and then create the second prism-based Gmail app from that profile. I would think that would give you two separate sessions.


Jason Miller
519.872.0797 // developIT // Jason Miller Design
Developer of amoebaOS, Shutterborg, Delitweet & more

On Wed Dec 02 2009 18:18:39 GMT-0500 (EST), shiplu wrote:


On Thu, Dec 3, 2009 at 6:05 AM, Jason Miller <ja...@developit.ca> wrote:
That is the application.ini file for Prism itself. The application.ini file for your Prism-based application will be located elsewhere. If you are using the Firefox extension, I believe it is located in a subdirectory of Prism's extension directory "refr...@developer.mozilla.org".


There is no more application.ini

See the shell output.

$ locate application.ini
/usr/lib/firefox-3.0.15/application.ini
/usr/share/prism/application.ini

Thats it. only two.


shiplu

unread,
Dec 2, 2009, 6:51:19 PM12/2/09
to mozilla-l...@googlegroups.com
In Ubuntu Prism is totally a different browser. Not an extension of existing firefox.

Jason Miller

unread,
Dec 2, 2009, 6:55:59 PM12/2/09
to mozilla-l...@googlegroups.com
There are two ways of using Prism. One is to use Prism standalone, as you appear to have used. The other (the one I suggest) is to use the Prism Firefox extension, called Refractor. Because it is an extension, it is not platform specific. The only difference is is that you generate Prism apps from within Firefox. They are still executed as separate applications.

The method I described previously would work if you tried the extension instead of Prism standalone. I have used both on Ubuntu and they work fine.

- Jason


Jason Miller
519.872.0797 // developIT // Jason Miller Design
Developer of amoebaOS, Shutterborg, Delitweet & more

On Wed Dec 02 2009 18:51:19 GMT-0500 (EST), shiplu wrote:
In Ubuntu Prism is totally a different browser. Not an extension of existing firefox.

shiplu

unread,
Dec 2, 2009, 7:38:15 PM12/2/09
to mozilla-l...@googlegroups.com


On Thu, Dec 3, 2009 at 6:55 AM, Jason Miller <ja...@developit.ca> wrote:
There are two ways of using Prism. One is to use Prism standalone, as you appear to have used. The other (the one I suggest) is to use the Prism Firefox extension, called Refractor. Because it is an extension, it is not platform specific. The only difference is is that you generate Prism apps from within Firefox. They are still executed as separate applications.

The method I described previously would work if you tried the extension instead of Prism standalone. I have used both on Ubuntu and they work fine.

Then what was your suggestion to implement different session for same url?
What to do with that specific application.ini?

Jason Miller

unread,
Dec 2, 2009, 8:00:07 PM12/2/09
to mozilla-l...@googlegroups.com
I suggested that you create duplicate Firefox profiles and use the application.ini to link to a different duplicate profile for each created Prism app. Just duplicate your Firefox profile for each app and change the application.ini lines:

GRE_HOME=/path/to/firefox/
PRISM_HOME=/path/to/firefox/Profiles/NEW_PROFILE_NAME/extensions/refr...@developer.mozilla.org/prism

Honestly, though, it would be much easier to create a second Firefox profile and run the Prism extension from within it.
Jason Miller
519.872.0797 // developIT // Jason Miller Design
Developer of amoebaOS, Shutterborg, Delitweet & more


--

Matthew Gertner

unread,
Dec 15, 2009, 11:26:55 AM12/15/09
to mozilla-l...@googlegroups.com
You can use the -profile command line option when you run prism to point to a different profile directory (it takes the full path to the profile directory). Then you'll get a different session for your app.

Matt
Reply all
Reply to author
Forward
0 new messages