Integrated dynamic network user login http://www.hotrich.com/blog/article.asp? Id = 20

Source: Internet
Author: User
1. enable the use of dynamic network cookies for full Netcom. login and exit are also for full Netcom. (The premise is that the forum is in the BBS/directory of the website and the relevant content is adjusted according to the actual situation. If the cookie of bbs.aaa.com needs to be obtained from www.aaa.com, You need to determine the path and name)

Modify three files:
① Open INC/dv_clsmain.asp
Find response. Cookies (forum_sn). Path = cookiepath
There should be a total of 1
Replace:
Response. Cookies (forum_sn). Path = "/"

② Open login. asp
Find response. Cookies (dvbbs. forum_sn). Path = dvbbs. cookiepath
There should be three in total, one of which is: Response. Cookies (dvbbs. forum_sn). Path = dvbbs. cookiepath (there are spaces on both sides of the equal sign)
Replace:
Response. Cookies (dvbbs. forum_sn). Path = "/"

③ Open logout. asp
Find response. Cookies (dvbbs. forum_sn). Path = dvbbs. cookiepath row 26th
There should be only one
Replace:
Response. Cookies (dvbbs. forum_sn). Path = "/"

Therefore, it is possible to read the page built in any directory.

Read Code :


<%
response. write Request. cookies (dvbbs. forum_sn) ("statuserid") & "
"
response. write Request. cookies (dvbbs. forum_sn) ("usercookies") & "
"
response. write Request. cookies (dvbbs. forum_sn) ("username") & "
"
response. write Request. cookies (dvbbs. forum_sn) ("password") & "
"
response. write Request. cookies (dvbbs. forum_sn) ("userclass") & "
"
response. write Request. cookies (dvbbs. forum_sn) ("userid") & "
"
response. write Request. cookies (dvbbs. forum_sn) ("userhidden") & "
"
%>

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.