Re: Question on sessions

2011-05-09 Thread Peter Karich
 ok stupid question. seems to be nothing related to android or wicket ...

it was a jetwick.com vs. www.jetwick.com issue so good old apache is the
bad man ;)

>  Hi,
>
>> and effectively bind it to a real session
> What do you mean with this?
>
> I'm having exactly the same issue, that a new session is opened after
> redirection
>  ... but only for android devices (built-in browser+opera)!? For desktop
> firefox it works.
>
> The redirect-url looks in both cases similar to:
> http://jetwick.com/login/callback/true/slide/true?oauth_token=oat&oauth_verifier=oav
>
> Is this a browser issue or probably a tomcat 6 issue when appending the
> session id? Or is this wicket (1.4.17) related?
>
> Here is the code from my Login class:
> Form form = new Form("form") {
> @Override public void onSubmit() {
> // create url:
> String url = ...;
> setRedirect(true);
> getRequestCycle().setRequestTarget(new RedirectRequestTarget(url));
> }
> ...
>
> When receiving the redirect-url I'm doing the following in my login class:
>
> String callback = parameters.getString("callback");
> if ("true".equals(callback)) {
>parameters.remove("callback");
>setRedirect(true);
>setResponsePage(new Jetslide(parameters));
>return;
> }
>
> Regards,
> Peter.
>
> BTW: I was having session related issues with desktop browsers when
> doing setResponsePage(Jetslide.class, params) instead of
> setResponsePage(new Jetslide(params)) !?
>
>> just and idea, declare an anonymous role in your app. and effectively bind
>> it to a real session, once the token is obtained elevate the users right.
>>
>> On Mon, Apr 25, 2011 at 6:35 PM, nimmy [via Apache Wicket] <
>> ml-node+3474193-959482693-65...@n4.nabble.com> wrote:
>>
>>> Hi,
>>>
>>> I have a user who has a temporary session (i.e. is not logged in).  I need
>>> to redirect him/her to an external page for to get an access token (e.g.
>>> Facebook/Flickr access token).
>>>
>>> Is there anyway to keep the same session? I find that the user has a
>>> different session after the redirection.
>>>
>>> Thanks for your help.
>>>
>>> Cheers,
>>> Nim
>>>
>>> --
>>>  If you reply to this email, your message will be added to the discussion
>>> below:
>>>
>>> http://apache-wicket.1842946.n4.nabble.com/Question-on-sessions-tp3474193p3474193.html
>>>  To start a new topic under Apache Wicket, email
>>> ml-node+1842946-398011874-65...@n4.nabble.com
>>> To unsubscribe from Apache Wicket, click 
>>> here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1842946&code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=>.
>>>
>>>
>>
>


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Question on sessions

2011-05-09 Thread Peter Karich
 Hi,

> and effectively bind it to a real session

What do you mean with this?

I'm having exactly the same issue, that a new session is opened after
redirection
 ... but only for android devices (built-in browser+opera)!? For desktop
firefox it works.

The redirect-url looks in both cases similar to:
http://jetwick.com/login/callback/true/slide/true?oauth_token=oat&oauth_verifier=oav

Is this a browser issue or probably a tomcat 6 issue when appending the
session id? Or is this wicket (1.4.17) related?

Here is the code from my Login class:
Form form = new Form("form") {
@Override public void onSubmit() {
// create url:
String url = ...;
setRedirect(true);
getRequestCycle().setRequestTarget(new RedirectRequestTarget(url));
}
...

When receiving the redirect-url I'm doing the following in my login class:

String callback = parameters.getString("callback");
if ("true".equals(callback)) {
   parameters.remove("callback");
   setRedirect(true);
   setResponsePage(new Jetslide(parameters));
   return;
}

Regards,
Peter.

BTW: I was having session related issues with desktop browsers when
doing setResponsePage(Jetslide.class, params) instead of
setResponsePage(new Jetslide(params)) !?

> just and idea, declare an anonymous role in your app. and effectively bind
> it to a real session, once the token is obtained elevate the users right.
>
> On Mon, Apr 25, 2011 at 6:35 PM, nimmy [via Apache Wicket] <
> ml-node+3474193-959482693-65...@n4.nabble.com> wrote:
>
>> Hi,
>>
>> I have a user who has a temporary session (i.e. is not logged in).  I need
>> to redirect him/her to an external page for to get an access token (e.g.
>> Facebook/Flickr access token).
>>
>> Is there anyway to keep the same session? I find that the user has a
>> different session after the redirection.
>>
>> Thanks for your help.
>>
>> Cheers,
>> Nim
>>
>> ------
>>  If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://apache-wicket.1842946.n4.nabble.com/Question-on-sessions-tp3474193p3474193.html
>>  To start a new topic under Apache Wicket, email
>> ml-node+1842946-398011874-65...@n4.nabble.com
>> To unsubscribe from Apache Wicket, click 
>> here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1842946&code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=>.
>>
>>
>
>


-- 
http://jetwick.com open twitter search


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Question on sessions

2011-04-26 Thread nimmy
Thanks. Sounds good ... i'll try it.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Question-on-sessions-tp3474193p3474890.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Question on sessions

2011-04-25 Thread jcgarciam
just and idea, declare an anonymous role in your app. and effectively bind
it to a real session, once the token is obtained elevate the users right.

On Mon, Apr 25, 2011 at 6:35 PM, nimmy [via Apache Wicket] <
ml-node+3474193-959482693-65...@n4.nabble.com> wrote:

> Hi,
>
> I have a user who has a temporary session (i.e. is not logged in).  I need
> to redirect him/her to an external page for to get an access token (e.g.
> Facebook/Flickr access token).
>
> Is there anyway to keep the same session? I find that the user has a
> different session after the redirection.
>
> Thanks for your help.
>
> Cheers,
> Nim
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/Question-on-sessions-tp3474193p3474193.html
>  To start a new topic under Apache Wicket, email
> ml-node+1842946-398011874-65...@n4.nabble.com
> To unsubscribe from Apache Wicket, click 
> here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1842946&code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=>.
>
>



-- 

JC


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Question-on-sessions-tp3474193p3474371.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Question on sessions

2011-04-25 Thread nimmy
Hi,

I have a user who has a temporary session (i.e. is not logged in).  I need
to redirect him/her to an external page for to get an access token (e.g.
Facebook/Flickr access token). 

Is there anyway to keep the same session? I find that the user has a
different session after the redirection.

Thanks for your help.

Cheers,
Nim

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Question-on-sessions-tp3474193p3474193.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org