DWR Session Error

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.