Asp. NET Modify Asp.net_sessionid head Hide development language

Source: Internet
Author: User

In the default scenario, the ASP. NET Framework will appear as follows

[Email protected] ~]# curl-i http://127.0.0.1HTTP/1.1 okserver:vws/1.0date:sun, Sep 00:58:56 gmtcontent-le Ngth:0connection:keep-alivecache-control:privateset-cookie:asp.net_sessionid=djoozwy53q55gjol5cizjsoo; path=/; HttpOnly

That way you know it's used. NET development, we now modify the header name by modifying the Web. config file

<system.web> <sessionstate cookiename= "Sessid"/></system.web>

So you can

[Email protected] ~]# curl-i http://127.0.0.1HTTP/1.1 okserver:vws/1.0date:sun, Sep 01:19:55 gmtcontent-le NGTH:0CONNECTION:KEEP-ALIVECACHE-CONTROL:PRIVATESET-COOKIE:SESSID=EZNYGDVLH1EWWUK4WFDG5OGK; path=/; HttpOnly





This article is from "Maple Night" blog, please be sure to keep this source http://fengwan.blog.51cto.com/508652/1964058

Asp. NET Modify Asp.net_sessionid head Hide development language

Related Article

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.