You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Fernando Wermus <fe...@gmail.com> on 2010/07/07 03:29:43 UTC

how to distinguish browser's tab?

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?

Posted by Fernando Wermus <fe...@gmail.com>.
Nino,
      I write down

On Wed, Jul 7, 2010 at 8:36 AM, nino martinez wael <
nino.martinez.wael@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 <fe...@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

Re: how to distinguish browser's tab?

Posted by nino martinez wael <ni...@gmail.com>.
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 <fe...@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
>