I'd do this with a filter on top of the XWiki (struts?) servlet.
A session object (request.getSession()) is allocated by the servlet container as soon as
the browser touches it, I believe.
paul
Le 27 sept. 2012 à 02:46, echocoder a écrit :
I would like to pass in a variable from a JSP page,
named mySession, to the
login page of Xwiki, such as:
So when the user has valid credentials they will be redirected here:
/xwiki/bin/login/XWiki/XWikiLogin/?mySession=" + session.getId();
There is some a custom authentication class written in Java that extends
XwikiAuthServiceImpl and inside of the checkAuth(XWikiContext context)
method I am trying to retrieve the value I passed in from the JSP page.
String mySession =
(String)context.getRequest().getSession().getAttribute("mySession");
The value of mySession is always null. Does anyone know where I went wrong
in trying to accomplish this?
--
View this message in context:
http://xwiki.475771.n2.nabble.com/passing-a-session-variable-to-the-XwikiLo…
Sent from the XWiki- Dev mailing list archive at
Nabble.com.
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs