EDN Admin
Well-known member
hi,
i have a login page in some project.
from here am redirecting to some another project which contains esri viewer name as
index.html .
whn am login as admin am passing the admin name as query string to that index.html page.
my problem is whn am copy that url after login (http://localhost:53552/index.htm?id=admin).
whn am logout and open new browser and paste this link it is redirect to that page.
but my requierment is restrict that link without login.
here is my web.config file(this web.config in index.html project)
<?xml version="1.0"?><br/>
<configuration>
<!--<appSettings><br/>
<add key="AdvancedSearch" value=" http://localhost:62460/index.htm http://localhost:62460/index.htm " /><br/>
</appSettings>--><br/>
<br/>
<system.serviceModel><br/>
<behaviors><br/>
<serviceBehaviors><br/>
<behavior name=" <br/>
<serviceMetadata httpGetEnabled="true"/><br/>
<serviceDebug includeExceptionDetailInFaults="false"/><br/>
<!--TAG FOR THE SIZE--><!--<br/>
<dataContractSerializer maxItemsInObjectGraph="2147483647" /><br/>
<serviceThrottling maxConcurrentSessions="2147483647" maxConcurrentInstances="2147483647" />
<br/>
--><!--***********************--><br/>
</behavior><br/>
</serviceBehaviors><br/>
</behaviors><br/>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true"/><br/>
<bindings><br/>
<basicHttpBinding><br/>
<binding name="BasicHttpBinding_IService1" maxBufferSize="2147483647"<br/>
maxReceivedMessageSize="2147483647 <br/>
<security mode="None" /><br/>
</binding><br/>
</basicHttpBinding><br/>
</bindings><br/>
<br/>
<client><br/>
<endpoint address=" http://csslsystem-362/WcfService1/Service1.svc http://csslsystem-362/WcfService1/Service1.svc " binding="basicHttpBinding"<br/>
bindingConfiguration="BasicHttpBinding_IService1" contract="ServiceReference1.IService1"<br/>
name="BasicHttpBinding_IService1" /><br/>
</client><br/>
<br/>
</system.serviceModel><br/>
<system.web><br/>
<compilation debug="true"/><br/>
<!--<authentication mode="Forms
<br/>
<forms loginUrl="Logon.aspx" name=".ASPXFORMSAUTH" defaultUrl="index.htm" />
<br/>
</authentication>--> <br/>
<authorization><br/>
<deny users="?"/><br/>
<allow users="*"/><br/>
</authorization><br/>
</system.web><br/>
<br/>
</configuration>
<span style="text-decoration:underline this is my loginpage web.config file
<span style="text-decoration:underline <?xml version="1.0"?>
<span style="text-decoration:underline <!--<br/>
For more information on how to configure your ASP.NET application, please visit<br/>
http://go.microsoft.com/fwlink/?LinkId=169433 http://go.microsoft.com/fwlink/?LinkId=169433 <br/>
-->
<span style="text-decoration:underline <configuration><br/>
<connectionStrings><br/>
<add name="ApplicationServices"<br/>
connectionString="data source=.SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true"<br/>
providerName="System.Data.SqlClient" /><br/>
</connectionStrings>
<span style="text-decoration:underline <system.web><br/>
<compilation debug="true" targetFramework="4.0" />
<span style="text-decoration:underline <authentication mode="Forms <br/>
<forms loginUrl="~/Account/Login.aspx" timeout="2880" /><br/>
</authentication>
<span style="text-decoration:underline <membership><br/>
<providers><br/>
<clear/><br/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices"<br/>
enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"<br/>
maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"<br/>
applicationName="/" /><br/>
</providers><br/>
</membership>
<span style="text-decoration:underline <profile><br/>
<providers><br/>
<clear/><br/>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/><br/>
</providers><br/>
</profile>
<span style="text-decoration:underline <roleManager enabled="false <br/>
<providers><br/>
<clear/><br/>
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" /><br/>
<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" /><br/>
</providers><br/>
</roleManager>
<span style="text-decoration:underline </system.web>
<span style="text-decoration:underline <system.webServer><br/>
<modules runAllManagedModulesForAllRequests="true"/><br/>
</system.webServer><br/>
<system.serviceModel><br/>
<behaviors><br/>
<serviceBehaviors><br/>
<behavior name=" <br/>
<serviceMetadata httpGetEnabled="true" /><br/>
<serviceDebug includeExceptionDetailInFaults="false" /><br/>
</behavior><br/>
</serviceBehaviors><br/>
</behaviors><br/>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" /><br/>
<bindings><br/>
<basicHttpBinding><br/>
<binding name="BasicHttpBinding_IService1" closeTimeout="00:01:00"<br/>
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"<br/>
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"<br/>
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"<br/>
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"<br/>
useDefaultWebProxy="true <br/>
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"<br/>
maxBytesPerRead="4096" maxNameTableCharCount="16384" /><br/>
<security mode="None <br/>
<transport clientCredentialType="None" proxyCredentialType="None"<br/>
realm="" /><br/>
<message clientCredentialType="UserName" algorithmSuite="Default" /><br/>
</security><br/>
</binding><br/>
</basicHttpBinding><br/>
</bindings><br/>
<client><br/>
<endpoint address=" http://csslsystem-297/WcfService1/Service1.svc http://csslsystem-297/WcfService1/Service1.svc "<br/>
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService1"<br/>
contract="ServiceReference1.IService1" name="BasicHttpBinding_IService1" /><br/>
</client><br/>
</system.serviceModel><br/>
</configuration><br/>
View the full article
i have a login page in some project.
from here am redirecting to some another project which contains esri viewer name as
index.html .
whn am login as admin am passing the admin name as query string to that index.html page.
my problem is whn am copy that url after login (http://localhost:53552/index.htm?id=admin).
whn am logout and open new browser and paste this link it is redirect to that page.
but my requierment is restrict that link without login.
here is my web.config file(this web.config in index.html project)
<?xml version="1.0"?><br/>
<configuration>
<!--<appSettings><br/>
<add key="AdvancedSearch" value=" http://localhost:62460/index.htm http://localhost:62460/index.htm " /><br/>
</appSettings>--><br/>
<br/>
<system.serviceModel><br/>
<behaviors><br/>
<serviceBehaviors><br/>
<behavior name=" <br/>
<serviceMetadata httpGetEnabled="true"/><br/>
<serviceDebug includeExceptionDetailInFaults="false"/><br/>
<!--TAG FOR THE SIZE--><!--<br/>
<dataContractSerializer maxItemsInObjectGraph="2147483647" /><br/>
<serviceThrottling maxConcurrentSessions="2147483647" maxConcurrentInstances="2147483647" />
<br/>
--><!--***********************--><br/>
</behavior><br/>
</serviceBehaviors><br/>
</behaviors><br/>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true"/><br/>
<bindings><br/>
<basicHttpBinding><br/>
<binding name="BasicHttpBinding_IService1" maxBufferSize="2147483647"<br/>
maxReceivedMessageSize="2147483647 <br/>
<security mode="None" /><br/>
</binding><br/>
</basicHttpBinding><br/>
</bindings><br/>
<br/>
<client><br/>
<endpoint address=" http://csslsystem-362/WcfService1/Service1.svc http://csslsystem-362/WcfService1/Service1.svc " binding="basicHttpBinding"<br/>
bindingConfiguration="BasicHttpBinding_IService1" contract="ServiceReference1.IService1"<br/>
name="BasicHttpBinding_IService1" /><br/>
</client><br/>
<br/>
</system.serviceModel><br/>
<system.web><br/>
<compilation debug="true"/><br/>
<!--<authentication mode="Forms
<br/>
<forms loginUrl="Logon.aspx" name=".ASPXFORMSAUTH" defaultUrl="index.htm" />
<br/>
</authentication>--> <br/>
<authorization><br/>
<deny users="?"/><br/>
<allow users="*"/><br/>
</authorization><br/>
</system.web><br/>
<br/>
</configuration>
<span style="text-decoration:underline this is my loginpage web.config file
<span style="text-decoration:underline <?xml version="1.0"?>
<span style="text-decoration:underline <!--<br/>
For more information on how to configure your ASP.NET application, please visit<br/>
http://go.microsoft.com/fwlink/?LinkId=169433 http://go.microsoft.com/fwlink/?LinkId=169433 <br/>
-->
<span style="text-decoration:underline <configuration><br/>
<connectionStrings><br/>
<add name="ApplicationServices"<br/>
connectionString="data source=.SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true"<br/>
providerName="System.Data.SqlClient" /><br/>
</connectionStrings>
<span style="text-decoration:underline <system.web><br/>
<compilation debug="true" targetFramework="4.0" />
<span style="text-decoration:underline <authentication mode="Forms <br/>
<forms loginUrl="~/Account/Login.aspx" timeout="2880" /><br/>
</authentication>
<span style="text-decoration:underline <membership><br/>
<providers><br/>
<clear/><br/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices"<br/>
enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"<br/>
maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"<br/>
applicationName="/" /><br/>
</providers><br/>
</membership>
<span style="text-decoration:underline <profile><br/>
<providers><br/>
<clear/><br/>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/><br/>
</providers><br/>
</profile>
<span style="text-decoration:underline <roleManager enabled="false <br/>
<providers><br/>
<clear/><br/>
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" /><br/>
<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" /><br/>
</providers><br/>
</roleManager>
<span style="text-decoration:underline </system.web>
<span style="text-decoration:underline <system.webServer><br/>
<modules runAllManagedModulesForAllRequests="true"/><br/>
</system.webServer><br/>
<system.serviceModel><br/>
<behaviors><br/>
<serviceBehaviors><br/>
<behavior name=" <br/>
<serviceMetadata httpGetEnabled="true" /><br/>
<serviceDebug includeExceptionDetailInFaults="false" /><br/>
</behavior><br/>
</serviceBehaviors><br/>
</behaviors><br/>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" /><br/>
<bindings><br/>
<basicHttpBinding><br/>
<binding name="BasicHttpBinding_IService1" closeTimeout="00:01:00"<br/>
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"<br/>
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"<br/>
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"<br/>
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"<br/>
useDefaultWebProxy="true <br/>
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"<br/>
maxBytesPerRead="4096" maxNameTableCharCount="16384" /><br/>
<security mode="None <br/>
<transport clientCredentialType="None" proxyCredentialType="None"<br/>
realm="" /><br/>
<message clientCredentialType="UserName" algorithmSuite="Default" /><br/>
</security><br/>
</binding><br/>
</basicHttpBinding><br/>
</bindings><br/>
<client><br/>
<endpoint address=" http://csslsystem-297/WcfService1/Service1.svc http://csslsystem-297/WcfService1/Service1.svc "<br/>
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService1"<br/>
contract="ServiceReference1.IService1" name="BasicHttpBinding_IService1" /><br/>
</client><br/>
</system.serviceModel><br/>
</configuration><br/>
View the full article