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] < > [email protected]> 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 >> [email protected] >> 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: [email protected] For additional commands, e-mail: [email protected]
