DWR Session Error
Yesterday in the use of DWR encountered a session error error, Google, after a foreigner in a forum to see a solution,
is to configure the following in the Web.xml:
<!--DWR servlet, the production environment should be debug to False-->
<servlet>
<servlet-name>dwr-invoker</servlet-name>
<servlet-class>
Org.directwebremoting.servlet.DwrServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>logLevel</param-name>
<param-value>warn</param-value>
</init-param>
<init-param>
<param-name>crossDomainSessionSecurity</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
The one in the middle.
<init-param>
<param-name>crossDomainSessionSecurity</param-name>
<param-value>false</param-value>
</init-param> was added to deal with this issue, and the experience is really good, but I don't know why.
Therefore, ask. Posted on 2007-05-24 19:02 Zhang Brothers Reading (1015) Comments (3) Edit Collection-->
Comments:#re:dwr Session error 2007-06-25 15:51 | Lisa
Thank you so much, I'm just learning Ajax. Dwr's usage, met with such a problem, see your code, it is true oh reply to more comments
# RE:DWR session error[not logged in] 2007-07-26 10:20 | lee
The problem is solved, but I don't know the root cause is there. Reply to more comments
# re:dwr Session error 2007-09-21 14:30 | copper coins
Ajax does not allow cross-domain access Maybe it's settled here. Reply to more comments