Re: how to distinguish browser's tab?

2010-07-07 Thread nino martinez wael
hmm i see a couple of ways of solving this.


   - Mount a special facebook entry page, that setups your style etc.Use
   that as entry point for the facebook app
   - The session cookie approach, in my setups I have Apache HTTP infront,
   so again I would have two apps where a cookie are set from Apache like
   facebook.myapp.com and app.myapp.com


2010/7/7 Fernando Wermus fernando.wer...@gmail.com

 Hi all,
 I have a site which works in facebook, as an facebook ap, as well as
 stand alone. the styling is the only thing that changes between these two
 versions.

 Some days ago, I found a bug that I don't know how to solve.

 If a user logins in facebook an uses my facebook app and later he adds a
 browser's tab and uses the stand alone version, the styling which remains
 is
 the one for facebook. This is because I stored in the session the info
 about
 how he had logged in and thus which styling should be applyed. I don't find
 a way to distinguish later between the two browser's tab - or any other
 kinds of solution. I was thinking of adding a cookie which could help me to
 distinguish between tabs, but I am not used to working with cookies.

 I have a plenty lack of ideas, any help would be really appreciate it.

 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus



Re: how to distinguish browser's tab?

2010-07-07 Thread Fernando Wermus
Nino,
  I write down

On Wed, Jul 7, 2010 at 8:36 AM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 hmm i see a couple of ways of solving this.


   - Mount a special facebook entry page, that setups your style etc.Use
   that as entry point for the facebook app


 This is the original problem. I do have an entry point, but if the user
opens a browser tab now, and access to the site directly, my session was set
up as a facebook app and thus the styling is the facebook one.

  - The session cookie approach, in my setups I have Apache HTTP infront,
   so again I would have two apps where a cookie are set from Apache like
   facebook.myapp.com and app.myapp.com


 2010/7/7 Fernando Wermus fernando.wer...@gmail.com

  Hi all,
  I have a site which works in facebook, as an facebook ap, as well as
  stand alone. the styling is the only thing that changes between these
 two
  versions.
 
  Some days ago, I found a bug that I don't know how to solve.
 
  If a user logins in facebook an uses my facebook app and later he adds a
  browser's tab and uses the stand alone version, the styling which remains
  is
  the one for facebook. This is because I stored in the session the info
  about
  how he had logged in and thus which styling should be applyed. I don't
 find
  a way to distinguish later between the two browser's tab - or any other
  kinds of solution. I was thinking of adding a cookie which could help me
 to
  distinguish between tabs, but I am not used to working with cookies.
 
  I have a plenty lack of ideas, any help would be really appreciate it.
 
  --
  Fernando Wermus.
 
  www.linkedin.com/in/fernandowermus
 




-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


how to distinguish browser's tab?

2010-07-06 Thread Fernando Wermus
Hi all,
 I have a site which works in facebook, as an facebook ap, as well as
stand alone. the styling is the only thing that changes between these two
versions.

Some days ago, I found a bug that I don't know how to solve.

If a user logins in facebook an uses my facebook app and later he adds a
browser's tab and uses the stand alone version, the styling which remains is
the one for facebook. This is because I stored in the session the info about
how he had logged in and thus which styling should be applyed. I don't find
a way to distinguish later between the two browser's tab - or any other
kinds of solution. I was thinking of adding a cookie which could help me to
distinguish between tabs, but I am not used to working with cookies.

I have a plenty lack of ideas, any help would be really appreciate it.

-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus