| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 742 人关注过本帖
标题:asp.net cookies 过期不会跳到登录页面,而是提示 过多的重定向... 谢谢!! ...
取消只看楼主 加入收藏
eleven_peng
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2014-1-3
结帖率:0
收藏
已结贴  问题点数:10 回复次数:0 
asp.net cookies 过期不会跳到登录页面,而是提示 过多的重定向... 谢谢!!
下面是配置文件...急呀。。谢谢,准备要上线了。。。

<?xml version="1.0"?>
<configuration>
<appSettings>
<!-- 连接字符串是否加密 -->
<add key="ConStringEncrypt" value="false"/>
<!-- 数据库连接字符串,(如果采用加密方式,上面一项要设置为true;加密工具,可在官方下载,
          如果使用明文这样server=127.0.0.1;database=.....,上面则设置为false。 -->
<add key="ConnectionString" value="xxx;database=xxx;uid=sa;pwd=sa"/>
<!--虚拟目录名称(如果是站点,则为空) -->
<add key="VirtualPath" value=""/>
<!--登录页地址 -->
<add key="LoginPage" value="admin/Login.aspx"/>
<!--默认菜单是否是展开状态-->
<add key="MenuExpanded" value="false"/>
<!--实体对象内容缓村的时间(分钟)-->
<add key="ModelCache" value="30"/>
</appSettings>
<connectionStrings>
<add name="connString" connectionString="server=xxx;uid =sa;pwd =sa;database =xxx"/>
</connectionStrings>
<system.web>
    <sessionState mode='StateServer'
                  stateConnectionString='tcpip=127.0.0.1:42424'
                  sqlConnectionString="Data Source=xxx;Initial Catalog=ASPState;User ID=sa;Password=sa;"
                  allowCustomSqlDatabase="true"
                  sqlCommandTimeout="10"
                  cookieless='false'
                  timeout='120'/>
   
<httpRuntime executionTimeout="3600" maxRequestLength="1048576"/>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
</compilation>
    <!--<customErrors mode="Off"/>-->
    <customErrors mode="RemoteOnly" defaultRedirect="~/ErrorPage/GenericErrorPage.htm">
      <error statusCode="403" redirect="~/ErrorPage/NoAccess.htm" />
      <error statusCode="404" redirect="~/ErrorPage/FileNotFound.htm" />
    </customErrors>
<identity impersonate="true"/>
<authentication mode="Forms">
<forms name="forums" loginUrl="/Admin/Login.aspx" protection="All" timeout="480"></forms>
</authentication>
<authorization>
<allow users="*"/>
</authorization>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
<controls>
<add tagPrefix="CKEditor" assembly=" namespace="
</controls>
</pages>
        <httpModules>
            <add name="MyHttpModule" type="HL., HL., Version=3.5.0, Culture=neutral"/>
        </httpModules>
        <trace enabled="true" pageOutput="false"/>
</system.web>
<system.webServer>
<defaultDocument>
<files>
<clear/>
<add value="Default.aspx"/>
<add value="Default.htm"/>
<add value="Default.asp"/>
</files>
</defaultDocument>
<httpErrors errorMode="Detailed"/>
</system.webServer>
</configuration>
搜索更多相关主题的帖子: version cookies 官方下载 database 数据库连接 
2014-01-03 10:50
快速回复:asp.net cookies 过期不会跳到登录页面,而是提示 过多的重定向... 谢 ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.023354 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved